Answers for "can I use && and || on switch statements java"

0

switch statement java

int age = 9;
switch(age){
  case 1:
    System.out.println("You are 1 year old");
  case 5:
    System.out.println("You are 5 years old");
  case 9:
    System.out.println("You are 9 years old");
  default:
    System.out.println("Ain't know how many years you are");
Posted by: Guest on July-27-2021

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language