Question: The addDecimal method adds a decimal point to the operand. Then it returns the period character. This method needs to be handled carefully because only

 The addDecimal method adds a decimal point to the operand. Then

The addDecimal method adds a decimal point to the operand. Then it returns the period character. This method needs to be handled carefully because only one decimal is allowed in an operand. Use the String method contains to help you here.

package calcrpn; 1 2 3 import java.util.Stack; 4 5 public class CalcBrain implements CalcRPNOperations { 7 Stack results; String operand; 8 9 10 2 12 13 public CalcBrain() { results = new Stack(); operand }

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!