회개처리

2026년 10월 28일 09:30분

사무엘하 12장에서 나단 선지자는 비유로 다윗의 죄를 지적하고 다윗은 즉각 회개합니다. 오류를 인정하는 것이 복구의 시작입니다. 나는 오류 인정과 복구 절차를 처리하는 함수를 만들었습니다.

package com.jesusbornd.samuel2;

public class Samuel2_12_Chapter_Lv2 {
    record ErrorReport(String actor, String fault, boolean admitted) {}
    static void repent(ErrorReport report) {
        if (report.admitted()) {
            System.out.println("✅ 오류 인정: " + report.actor() + " — " + report.fault());
            System.out.println("→ 복구 절차 시작");
        } else {
            System.out.println("⚠️  오류 부인 — 복구 불가");
        }
    }
    public static void main(String[] args) {
        repent(new ErrorReport("다윗", "권한남용·살인교사", true));
    }
}

def repent(actor: str, fault: str, admitted: bool):
    if admitted:
        print(f"✅ 오류 인정: {actor} — {fault}")
        print("→ 복구 절차 시작")
    else:
        print("⚠️  오류 부인 — 복구 불가")

repent("다윗", "권한남용·살인교사", True)

Comments

Avatar
 2026년 10월 28일 11:37분

"내가 죄를 범하였나이다" — 인정이 복구의 시작입니다.



Search

← 목록으로