Run Code
|
API
|
Code Wall
|
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
4c
friend circle problem
isPrime
SecToHours
Trapping Rain Water
// Java Coding Challenge - 09: Find out duplicate numbers using Array
Assignment for Web Software Developer position
Quadratic_Equation.java
JavaQ5
JAVA # 3 sayının En büyüğü