Thread
:
Java Entering a Number or Letter
View Single Post
Apr 5th, 2008, 1:53 AM
#
8
titaniumdecoy
Expert Programmer
Join Date: Nov 2005
Posts: 856
Rep Power:
3
Re: Java Entering a Number or Letter
You need to use the equals method when comparing Strings in Java. Replace str == "1" with str.equals("1").
titaniumdecoy
View Public Profile
Visit titaniumdecoy's homepage!
Find More Posts by titaniumdecoy