switch same cases java code example
Example: switch case less than java
switch (lessThan)
{
//Less than cannot techinically be added so we use the numbers less than those numeberss
case 1:
case 2:
case 3:
System.out.println("This name has 3 or less characters");
break;
case 4:
System.out.println("This name has 4 characters");
break;
}