Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Switch case example
//'main' method must be in a class 'Rextester'. //Compiler version 1.8.0_111 import java.util.*; import java.lang.*; class Rextester { public static void main(String args[]) { String s="roshini"; switch(s) { case "sowmiya" : System.out.println(s); break; case "roshini": System.out.println("roshini"); break; default: System.out.println("Not a name"); } } }
run
|
edit
|
history
|
help
0
batman
1a
Convert ArrayList to array in java
linear search
jb14 L
has a
test1
or You Over the hill
MyBirdClass
Tree_inorder_recursive