Skip to content

fefong/java_switch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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