Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

Switch statement expressions jdk12+

switch (day) {
    case MONDAY, FRIDAY, SUNDAY -> System.out.println(6);
    case TUESDAY                -> System.out.println(7);
    case THURSDAY, SATURDAY     -> System.out.println(8);
    case WEDNESDAY              -> System.out.println(9);
}
Comment

PREVIOUS NEXT
Code Example
Java :: [ERROR] Error executing Maven. java.io.FileNotFoundException: The specified user settings file does not exist: /usr/lib/jvm/java-1.8.0-openjdk-amd64 
Java :: javadoc generate docs for files in folder and subfolders 
Java :: how to set to nothing a ComboBox in java 
Java :: resources/android/xml/network_security_config.xml 
Java :: sfadffocusbutton 
Java :: java lib reference 
Java :: mint menu disapeared 
Java :: repository null when testing service 
Java :: Java Method Overloading by changing the data type of parameters 
Java :: JDA send DM 
Java :: Retries Java 
Java :: Java program to find which department has highest placement program 
Java :: Hibernate/JPA criteria query 
Java :: 710*12 
Java :: public CustomAdapter(Context context, ArrayList<HashMap data, int resource, String[] from, int[] to) 
Java :: default access modifier java 
Java :: java backtracking 
Java :: android edittext with icon 
Java :: how to get visibility of element android 
Java :: randpm years java 
Java :: number pattern in java 
Java :: difference between set and list in java 
Java :: Java Method for Code Reusability 
Java :: java ultimo dia del mes 
Java :: java pebble replacestart 
Java :: java equivalent of pythons getattr 
Java :: java static inner class 
Java :: what does this means error: cannot find symbol StorageRef.child(mUser()).putFile(imageUri).addOnCompleteListener(new OnCompleteListener<UploadTask.TaskSnapshot() 
Java :: java new.JFrame(); 
Java :: Java Remove EnumSet Elements 
ADD CONTENT
Topic
Content
Source link
Name
1+2 =