Skip to content

Latest commit

 

History

History
28 lines (25 loc) · 658 Bytes

README.md

File metadata and controls

28 lines (25 loc) · 658 Bytes

Java Switch Case

Example Application: Switch Case

Java SwitchCase Example

switch (option) {
case 0:
	// TODO
	System.out.println("Case: 0");
	break;
case 1:
	// TODO
	System.out.println("Case: 1");
	break;
default:
	// TODO
	System.out.println(String.format("Case: Default (value: %d)", option));
	break;
}

Some links for more in depth learning