We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f86db1 commit ff28b91Copy full SHA for ff28b91
βsrc/main/java/practiceJAVA/SwitchExpressions.javaβ
@@ -0,0 +1,34 @@
1
+package practiceJAVA;
2
+
3
+public class SwitchExpressions {
4
+ public static void main(String[] args) {
5
6
+ char grade = 'c';
7
8
+ switch (grade) {
9
+ case 'A', 'a' -> {
10
+ System.out.println("μ°μ νμμ λλ€.");
11
+ }
12
+ case 'B', 'b' -> {
13
+ System.out.println("μΌλ° νμμ λλ€.");
14
15
+ case 'C', 'c' -> {
16
+ System.out.println("ν΄λ©΄ νμμ λλ€.");
17
18
19
20
+/* switch (grade) {
21
+ case 'A':
22
+ case 'a':
23
24
+ break;
25
+ case 'B':
26
+ case 'b':
27
28
29
+ default:
30
31
+ }*/
32
33
34
+}
0 commit comments