Skip to content

Instantly share code, notes, and snippets.

@boaglio
Created July 27, 2019 01:26
Show Gist options
  • Save boaglio/b86c3bc61f8530b4c14a82e53ff77d10 to your computer and use it in GitHub Desktop.
Save boaglio/b86c3bc61f8530b4c14a82e53ff77d10 to your computer and use it in GitHub Desktop.
public class Java13 {
public static void main(String[] args) {
System.out.println("Java 13 test!");
Java13.howMany(13);
}
static void howMany(int k) {
System.out.println(
switch (k) {
case 1 -> "one";
case 2 -> "two";
default -> "many";
}
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment