나는나다
2026년 1월 7일 13:06분
package com.jesusbornd.exodus;
public class Exodus_06_Chapter_Lv1 {
public static void main(String[] args) {
int phase = 2;
String message = "나는 여호와라 / I am the LORD";
switch (phase) {
case 1 -> System.out.println("듣지 못함 / Not listening");
case 2 -> System.out.println("말씀을 다시 받음 / Receive the word again: " + message);
case 3 -> System.out.println("보냄을 받음 / Sent to speak");
default -> System.out.println("대기 / Waiting");
}
}
}
phase = 2
message = "나는 여호와라 / I am the LORD"
match phase:
case 1:
print("듣지 못함 / Not listening")
case 2:
print("말씀을 다시 받음 / Receive the word again:", message)
case 3:
print("보냄을 받음 / Sent to speak")
case _:
print("대기 / Waiting")
Search
Categories
← 목록으로
Comments
default -> 대기가 오히려 현실적이네요. 늘 ‘보냄’만 있는 게 아니라, 멈춰 서 있는 구간도 코드에 남겨두는 게요.