Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
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
Please
log in
to post a comment.
Find Case Combinations of a String
PE #3
even to 100
4.a
pow x^n
Value pair analysis
Odd
Split
Palindrome String Checking
jb11.0 threads tick tock
stackse - search stackoverflow differently
Please log in to post a comment.