|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#2
|
|||
|
|||
|
Re: JAVA 101 help
You have (door == "t"), this is not recommended.
Strings are objects, unlike ints and other primitive types. And because Strings are objects, you can't use '==' to compare two Strings. You would need to use string1.equals(string2); |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|