Results 1 to 3 of 3
Thread: Do While Loop
- 12-14-2011, 10:44 AM #1
Member
- Join Date
- Oct 2011
- Posts
- 19
- Rep Power
- 0
- 12-14-2011, 10:46 AM #2
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,601
- Blog Entries
- 7
- Rep Power
- 17
Re: Do While Loop
Don't compare Strings (or any object type) with the == or != operators; use the equals( ... ) method instead. Read the API documentation for the String class and also read what the API documentation of the Object class has to say about this.
kind regards,
JosWhen people rob a bank they get a penalty; when banks rob people they get a bonus.
- 12-14-2011, 10:58 AM #3
Member
- Join Date
- Oct 2011
- Posts
- 19
- Rep Power
- 0
Similar Threads
-
Problem with while loop, assigning a variable with a different value every loop? Help
By JavaProg in forum New To JavaReplies: 2Last Post: 11-07-2011, 02:25 AM -
Is it Possible? Array elements Initialized in Loop, can it be viewed outside loop?
By JPH in forum New To JavaReplies: 1Last Post: 10-01-2011, 02:12 AM -
JTextField loop 2x for-loop WEIRD!
By Streetproject in forum AWT / SwingReplies: 2Last Post: 02-16-2011, 05:46 PM -
How can I rewrite the following while loop using a for loop?
By gt11990 in forum New To JavaReplies: 5Last Post: 04-30-2010, 05:05 PM


1Likes
LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks