View Single Post
  #2 (permalink)  
Old 07-31-2007, 10:03 PM
brianhks brianhks is offline
Senior Member
 
Join Date: Jul 2007
Posts: 134
brianhks will become famous soon enough
The readLine inside of Calc1.getInput() gets the line feed as part of the input. Try changing it to this Calc1.getInput().trim()

That will trim off the whitespace.
Reply With Quote