can anyone give me a sample code of a while statement with more than one condition? please...
aladar04
0
Light Poster
Recommended Answers
Jump to PostSimple example:
static int MAX_TESTS = 5; int test = 0; boolean result = true; int something = 6; while(test < MAX_TESTS && result) { result = (something > 7); test++; }
EDIT: Basically, the while loop takes a boolean condition. This can be the result of …
All 3 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.