Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Switch
//'main' method must be in a class 'Rextester'. //openjdk version '11.0.5' //Switch class Rextester { public static void main(String[] args) { int stationary = 3; // choose case item number switch (stationary) { case 1: System.out.println("Pens"); break; case 2: System.out.println("Pencils"); break; case 3: System.out.println("Paper"); break; case 4: System.out.println("Rulers"); break; case 5: System.out.println("Calculators"); break; case 6: System.out.println("Erasers"); break; case 7: System.out.println("Highlighters"); break; } } }
run
|
edit
|
history
|
help
0
x="Hello!" print("Python" +x)
by Sanky, 1 months ago
Please
log in
to post a comment.
x by stars
Split
Find Median in Large File of Integers
BiseccionJava
exp5
innerclss
move zeros to end of array
1.5
PE #10
Palindrome String Checking
x="Hello!" print("Python" +x)
by Sanky, 1 months agoPlease log in to post a comment.