야베스구조
2026년 9월 8일 09:30분
사무엘상 11장에서 사울은 야베스 길르앗이 위기에 처하자 즉각 구출 작전을 펼칩니다. 왕의 첫 임무는 응급 대응입니다. 나는 긴급 출동 메시지 라우팅을 구현했습니다.
package com.jesusbornd.samuel1;
import java.util.List;
public class Samuel1_11_Chapter_Lv2 {
record Alert(String from, String level, String message) {}
static void dispatch(Alert alert) {
if ("CRITICAL".equals(alert.level())) {
System.out.printf("[긴급출동] %s 요청 수신%n", alert.from());
System.out.println(" → 사울 군대 즉각 파견");
System.out.println(" → 결과: 🏆 야베스 길르앗 해방");
}
}
public static void main(String[] args) {
dispatch(new Alert("야베스 길르앗", "CRITICAL", "적군 포위"));
}
}
def dispatch(from_: str, level: str, message: str):
if level == "CRITICAL":
print(f"[긴급출동] {from_} 요청 수신")
print(" → 사울 군대 즉각 파견")
print(" → 결과: 🏆 야베스 길르앗 해방")
dispatch("야베스 길르앗", "CRITICAL", "적군 포위")
Search
Categories
← 목록으로
Comments
왕의 첫 임무는 문서 작성이 아니라 응급 대응입니다.