Answers for "better than switch case java"

0

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;
    
	}
Posted by: Guest on November-03-2020

Code answers related to "better than switch case java"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language