diff --git a/background.png b/background.png deleted file mode 100644 index d62a3a4..0000000 --- a/background.png +++ /dev/null Binary files differ diff --git a/frontpage.png b/frontpage.png deleted file mode 100644 index 9aa9df9..0000000 --- a/frontpage.png +++ /dev/null Binary files differ diff --git a/images/background.png b/images/background.png new file mode 100644 index 0000000..d62a3a4 --- /dev/null +++ b/images/background.png Binary files differ diff --git a/images/frontpage.png b/images/frontpage.png new file mode 100644 index 0000000..9aa9df9 --- /dev/null +++ b/images/frontpage.png Binary files differ diff --git a/snippets/Switches.java b/snippets/Switches.java index b172414..8acf4c1 100644 --- a/snippets/Switches.java +++ b/snippets/Switches.java @@ -24,6 +24,21 @@ System.out.println(value); } + void method12(String input) { + var value = switch (input) { + case "a": { + yield 1; + } + case "b": { + yield 2; + } + default: { + yield 0; + } + }; + System.out.println(value); + } + void method2(Object obj) { var result = switch (obj) { case Integer i -> String.format("int %d", i);