Thread
:
Help with spacing in java
View Single Post
#
2
(
permalink
)
07-31-2007, 10:03 PM
brianhks
Senior Member
Join Date: Jul 2007
Posts: 134
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.
brianhks
View Public Profile
Send a private message to brianhks
Find all posts by brianhks