Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Can you nest nested if statements in switch statements in do while?

938163May 27 2012 — edited May 28 2012
For example:
do {
	Switch (expressions) {
		if (case 0:) {
			if (statements) {
			} else {
			}
		} else if (case 1:) {
			if (statements) {
			} else {
			}
		} else if (case 2:) {
			if (statements) {
			} else {
		}
	}
}
}
while (expressions);
etc....


And would this be the correct layout to make it work successfully? Or, how else could I get my intended result? Or am I nuts? haha

Edited by: EStyles on May 27, 2012 1:44 AM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 25 2012
Added on May 27 2012
10 comments
476 views