Bibi's DevLog ๐Ÿค“๐ŸŽ

[Java] ํ•œ๊ธ€์‹œ๊ณ„ ๋”ฐ๋ผ ๋งŒ๋“ค๊ธฐ - ์ด์ฐจ์›๋ฐฐ์—ด, ํ˜„์žฌ์‹œ๊ฐ„ ๊ตฌํ•˜๊ธฐ, switch-case ์—ฌ๋Ÿฌ ์กฐ๊ฑด + ์•ˆ์‹œ ์ฝ”๋“œ ๋ณธ๋ฌธ

๐Ÿ–ฅ BE ๋ฐฑ์—”๋“œ/Java ์ž๋ฐ”

[Java] ํ•œ๊ธ€์‹œ๊ณ„ ๋”ฐ๋ผ ๋งŒ๋“ค๊ธฐ - ์ด์ฐจ์›๋ฐฐ์—ด, ํ˜„์žฌ์‹œ๊ฐ„ ๊ตฌํ•˜๊ธฐ, switch-case ์—ฌ๋Ÿฌ ์กฐ๊ฑด + ์•ˆ์‹œ ์ฝ”๋“œ

๋น„๋น„ bibi 2020. 11. 16. 17:46

hangulclock.today/#/main

์œ„์™€ ์‚ฌ์ดํŠธ์™€ ๊ฐ™์€ ๋ฐฉ์‹์œผ๋กœ ๋™์ž‘ํ•˜๋Š” ํ•œ๊ธ€ ์‹œ๊ณ„๋ฅผ ๋”ฐ๋ผ ๋งŒ๋“œ๋Š” ์˜ˆ์ œ์ž…๋‹ˆ๋‹ค.

 

์ถœ๋ ฅ ํ˜•ํƒœ.

 


์ž๋ฐ” ์ด์ฐจ์›๋ฐฐ์—ด์„ ํ™œ์šฉํ•ด ํ•œ๊ธ€ ์‹œ๊ณ„๋ฅผ ๋”ฐ๋ผ ๋งŒ๋“œ๋Š” ์˜ˆ์ œ์ž…๋‹ˆ๋‹ค.
์ €๋Š” ์ด์ฐจ์›๋ฐฐ์—ด์„ ๋จผ์ € ๊ณต๋ถ€ํ•œ ๋‹ค์Œ ๊ตฌํ˜„ - ๋‚ด์šฉ

์ „์ฒด ์ฝ”๋“œ๋Š” ๋งจ ์•„๋ž˜์— ์žˆ์Šต๋‹ˆ๋‹ค.

ํด๋ž˜์Šค : HangeulClock

  • main()

    • HangeulClock๊ฐ์ฒด๋ฅผ ์ƒ์„ฑ
    • Timer, TimerTask ๊ฐ์ฒด ์ƒ์„ฑ
      • TimerTask task ๋‚ด์˜ run() ๋ฉ”์†Œ๋“œ์— ๋ฐ˜๋ณต ์‹คํ–‰ํ•  ๊ตฌ๋ฌธ์„ ์ž…๋ ฅ.
      • showHourMinute ๋ฉ”์†Œ๋“œ์˜ ๋ฆฌํ„ด๊ฐ’(์ด์ฐจ์›๋ฐฐ์—ด clockResult)์„ ๋ฐ›์•„์˜ด
      • printHangeulClock์„ ํ†ตํ•ด ๋ฐ›์•„์˜จ ๋ฆฌํ„ด๊ฐ’์„ ์ถœ๋ ฅ
    • scheduler.scheduleAtFixedRate(task, 1000, 60000); ๋กœ ์ •์˜ํ•œ task๋ฅผ 1์ดˆ ๋’ค์—, 1๋ถ„๋งˆ๋‹ค ๋ฐ˜๋ณต์‹คํ–‰.
    • Timer, TimerTask, scheduleAtFixedRate() (์ž๋ฐ” ์Šค์ผ€์ค„๋Ÿฌ, ๋ฐ˜๋ณต์‹คํ–‰) ์— ๋Œ€ํ•ด ๊ณต๋ถ€ํ•œ ๋‚ด์šฉ์€ ์—ฌ๊ธฐ์— ์ •๋ฆฌ.
  • (์ฃผ์„์ฒ˜๋ฆฌ๋œ clearScreen()) (= ๋ฏธ๋ จ..)

    • ๋ฐ˜๋ณต ์‹คํ–‰ ๋  ๋•Œ๋งˆ๋‹ค ์ฝ˜์†”์ฐฝ์„ ๋น„์šฐ๊ณ  ๋ณด์—ฌ์ฃผ๊ณ  ์‹ถ์—ˆ๋Š”๋ฐ, ๊ตฌ๊ธ€๋ง์œผ๋กœ ์•Œ์•„๋‚ธ ์ด๋Ÿฐ ์ €๋Ÿฐ ๋ฐฉ๋ฒ•์„ ๋‹ค ์‹œ๋„ํ–ˆ๋Š”๋ฐ ์•ˆ ๋œ๋‹ค.ใ… ใ… 
  • showBackground()

    • ๋ง ๊ทธ๋Œ€๋กœ ๋ฐฐ๊ฒฝ์„ ์ฐ๋Š” ์ด์ฐจ์›๋ฐฐ์—ด์ด ์žˆ๋Š” ๋ฉ”์†Œ๋“œ
    • ์ด ๋ฐฐ๊ฒฝ์„ ๋‘๊ณ , ํ˜„์žฌ ์‹œ๊ฐ„์— ๋งž๋Š” ํ•œ๊ธ€ ์‹œ๊ฐ„์„ ๊ฐ ์…€์— ๋Œ€์ž…ํ•˜๋Š” ๋ฐฉ์‹์œผ๋กœ ๊ตฌํ˜„ํ–ˆ๋‹ค.
  • takdHangeul()

    • ํ•œ๊ธ€ ์‹œ, ํ•œ๊ธ€ ๋ถ„์ด ๋“ค์–ด ์žˆ๋Š” ์ด์ฐจ์›๋ฐฐ์—ด์ด ์žˆ๋Š” ๋ฉ”์†Œ๋“œ
    • ํ•œ๊ธ€์‹œ๊ณ„ ์‚ฌ์ดํŠธ์˜ ํ˜•ํƒœ ๊ทธ๋Œ€๋กœ ๋”ฐ๋ผํ–ˆ๋‹ค.
  • printHangeulClock()

    • ์ œ๋ชฉ ์ถœ๋ ฅ
    • main๋ฉ”์†Œ๋“œ์—์„œ ๋ฆฌํ„ด๊ฐ’์„ ๋ฐ›์•„ ํ•œ๊ธ€์‹œ๊ณ„๋ฅผ ์ตœ์ข… ์ถœ๋ ฅํ•˜๋Š” ๋ฉ”์†Œ๋“œ
    • ์ข€ ๋” ์˜ˆ์œ ์•„์›ƒํ’‹์„ ์œ„ํ•ด (..) ์ด์ฐจ์›๋ฐฐ์—ด์˜ ๊ฐ ์š”์†Œ๋ฅผ ๊ณต๋ฐฑ์œผ๋กœ ๊ฐ์‹ธ ์ถœ๋ ฅํ–ˆ๋‹ค.
  • getCurrentTime()

    • ํ˜„์žฌ ์‹œ๊ฐ„์„ ๊ฐ€์ ธ์˜ค๊ณ  ์›ํ•˜๋Š” ํ˜•ํƒœ๋กœ ๋งŒ๋“œ๋Š” ๋ฉ”์†Œ๋“œ
    • import java.time.LocalDateTime; ๊ณผ import java.time.format.DateTimeFormatter; ํ•„์š”
    • ์ž๋ฐ” ํ˜„์žฌ์‹œ๊ฐ„์œผ๋กœ ๊ตฌ๊ธ€๋งํ•ด ๋„์›€์„ ๋ฐ›์•˜์Šต๋‹ˆ๋‹ค. ๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค.
    • ๋ฆฌํ„ด๊ฐ’ hourMinute์˜ ํ˜•ํƒœ๋Š” 00:00 .
  • showHourMinute()

    • getCurrentTime()์—์„œ 00:00 ํ˜•ํƒœ์˜ ์‹œ๊ฐ„์„, takeHangeul()์—์„œ ํ•œ๊ธ€ ์‹œ&๋ถ„ ๋ฐ์ดํ„ฐ๋ฅผ, showBackground()์—์„œ ์ถœ๋ ฅํ•  ๋ฐฐ๊ฒฝ์„ ๊ฐ€์ ธ์˜จ๋‹ค.
    • .split(":")์„ ํ†ตํ•ด ํ˜„์žฌ ์‹œ๊ฐ„๊ณผ ํ˜„์žฌ ๋ถ„์„ ๋”ฐ๋กœ ๊ตฌํ•œ๋‹ค
    • switch๋ฌธ
    • ๊ธฐ๋ณธ์ ์œผ๋กœ๋Š” ์•„๋ž˜ putHangeulHours()์—์„œ ํ•œ๊ธ€ ์‹œ๊ฐ„์„, putHangeulMinutes()์—์„œ ํ•œ๊ธ€ ๋ถ„์„ ๋ฐ›์•„์˜ค๋„๋ก ํ–ˆ๋‹ค.
    • ๊ทธ๋Ÿฌ๋‚˜ ํ•œ๊ธ€์‹œ๊ณ„๋ฅผ ์ž์„ธํžˆ ๋ณด๋ฉด ๋งจ ์™ผ์ชฝ ์ค„์— '์ž', '์ •', '์˜ค' ๊ฐ€ ์žˆ๋‹ค. ์ง์ž‘์ปจ๋Œ€ 00:00์ผ ๋•Œ '์ž์ •'์ด ํ‘œ์‹œ๋˜๊ณ , 12:00์ผ ๋•Œ "์ •์˜ค"๊ฐ€ ํ‘œ์‹œ๋˜๋Š” ๊ฒƒ ๊ฐ™๋‹ค(00:00, 12:00์— ๋“ค์–ด๊ฐ€ ๋ณธ ์ ์ด ์—†์–ด์„œ ํ™•์ธ์€ ๋ชป ํ–ˆ๋‹ค). ๋”ฐ๋ผ์„œ ์ถœ๋ ฅํ˜•ํƒœ๊ฐ€ ์˜ˆ์™ธ์ ์ธ ์œ„์˜ ๋‘ ๊ฒฝ์šฐ์—๋งŒ case๋ฅผ ์ ์šฉํ•ด ์ฃผ์—ˆ๋‹ค.
  • putHangeulHours()

    • ํ˜„์žฌ ์‹œ๊ฐ„์— ๋งž๋Š” ํ•œ๊ธ€ ์‹œ๊ฐ„ ๊ฐ’์„ clockFormat(showBackground()์˜ ์ด์ฐจ์›๋ฐฐ์—ด)์— ๋„ฃ์–ด ์ค€๋‹ค.
    • ์˜ˆ๋ฅผ ๋“ค์–ด 01์‹œ ๋˜๋Š” 13์‹œ์ด๋ฉด "ํ•œ", "์‹œ" ๋ฅผ ๋„ฃ์–ด์ค€๋‹ค.
    • "์‹œ"๋ถ€๋ถ„์€ ๊ณตํ†ต์ด๋ผ ๋ฉ”์†Œ๋“œ๊ฐ€ ๋๋‚˜๊ธฐ ์ง์ „์— ํ•œ๋ฒˆ๋งŒ ์ ์–ด์ค€๋‹ค.
    • switch-case๋ฌธ์˜ ์กฐ๊ฑด์ด ์—ฌ๋Ÿฌ ๊ฐœ์ผ ๋•Œ ์‚ฌ์šฉ๋ฐฉ๋ฒ•์„ ๊ฒ€์ƒ‰ํ•ด์„œ ์ฐธ๊ณ ํ–ˆ๋‹ค(์ฝ”๋“œ๊ฐ€ ๋„ˆ๋ฌด ๊ธธ์–ด์ ธ์„œ). switch case ์กฐ๊ฑด ์—ฌ๋Ÿฌ๊ฐœ๋กœ ๊ตฌ๊ธ€๋งํ•ด ๋„์›€์„ ๋ฐ›์•˜์Šต๋‹ˆ๋‹ค. ๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค.
  • putHangeulMinutes()

    • ํ˜„์žฌ ๋ถ„์— ๋งž๋Š” ํ•œ๊ธ€ ๋ถ„ ๊ฐ’์„ clockFormat(showBackground()์˜ ์ด์ฐจ์›๋ฐฐ์—ด)์— ๋„ฃ์–ด ์ค€๋‹ค.
    • ๋ถ„์˜ ์‹ญ์˜ ์ž๋ฆฌ์™€ ์ผ์˜ ์ž๋ฆฌ๋ฅผ ๋”ฐ๋กœ ๋”ฐ๋กœ ํŒ๋‹จํ•ด ๋„ฃ๋Š”๋‹ค - ๊ทธ๋ž˜์„œ switch๋ฌธ์ด ๋‘ ๊ฐœ.
    • ์˜ˆ๋ฅผ ๋“ค์–ด 45๋ถ„์ด๋ฉด ์‹ญ์˜ ์ž๋ฆฌ์—์„œ "์‚ฌ","์‹ญ", ์ผ์˜ ์ž๋ฆฌ์—์„œ "์˜ค" ๋ฅผ ๋„ฃ์–ด์ค€๋‹ค.
    • "๋ถ„"๋ถ€๋ถ„๋„ ๊ณตํ†ต์ด๋ผ๊ณ  ์ƒ๊ฐํ–ˆ๋Š”๋ฐ, ์‹œ๊ฐ„์ด 06:00 ์ผ ๋•Œ "์—ฌ์„ฏ ์‹œ ๋ถ„"์œผ๋กœ ์ถœ๋ ฅ๋˜๋Š” ์˜ค๋ฅ˜๊ฐ€ ์žˆ์—ˆ๋‹ค.
    • ๊ทธ๋ž˜์„œ ๋งจ ๋งˆ์ง€๋ง‰์— if๋ฌธ์œผ๋กœ ๋ถ„์˜ ์ž๋ฆฌ๊ฐ€ ๋ชจ๋‘ 0์ผ ๊ฒฝ์šฐ์—๋Š” ํ•จ์ˆ˜๋ฅผ ์ข…๋ฃŒ, ๊ทธ๋ ‡์ง€ ์•Š์€ ๊ฒฝ์šฐ '๋ถ„'์„ ์ถœ๋ ฅํ•˜๋„๋ก ํ–ˆ๋‹ค.

๊ฐœ์„ ์‚ฌํ•ญ
์•ˆ์‹œANSI ์ฝ”๋“œ : ์ฝ˜์†”์ฐฝ์—์„œ ์ถœ๋ ฅํ•  ๋•Œ ๊ธ€์”จ ์ƒ‰์„ ๋ฐ”๊ฟ€ ์ˆ˜ ์žˆ๋‹ค.
๋‚˜์ค‘์— ํ™œ์šฉํ•ด๋ด์•ผ๊ฒ ๋‹ค.
์ฐธ๊ณ  : System.out.println์„ ์‚ฌ์šฉํ•˜์—ฌ ์ฝ˜์†”์—์„œ ์ƒ‰์ƒ์„ ์ธ์‡„ํ•˜๋Š” ๋ฐฉ๋ฒ•์€ ๋ฌด์—‡์ž…๋‹ˆ๊นŒ?

์ „์ฒด ์ฝ”๋“œ

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.util.Timer;
import java.util.TimerTask;

public class HangeulClock {
    public static void main(String[] args) {
        HangeulClock hangeulClock = new HangeulClock();
        Timer scheduler = new Timer();
        TimerTask task = new TimerTask() {
            @Override
            public void run() {
                // hangeulClock.clearScreen(); ๋™์ž‘ํ•˜์ง€ ์•Š์Œ..ใ…œ
                String[][] clockResult = hangeulClock.showHourMinute();
                hangeulClock.printHangeulClock(clockResult);
            }
        };
        scheduler.scheduleAtFixedRate(task, 1000, 60000); // 1์ดˆ ๋’ค 1๋ถ„๋งˆ๋‹ค ๋ฐ˜๋ณต์‹คํ–‰
    }

//    public void clearScreen() {
//        for (int i = 0; i < 80; i++)
//            System.out.println("");
//    }

    public static String[][] showBackground() {
        String[][] background = new String[6][6];
        // ๊ฐ’ ๋„ฃ๊ธฐ
        // boolean -> true ์ด๋ฉด ๊ฐ’ ๋„ฃ๊ณ  false์ด๋ฉด ๊ธฐํ˜ธ๋กœ.
        background[0] = new String[]{"โœจ", "โœจ", "โœจ", "โœจ", "โœจ", "โœจ"};
        background[1] = new String[]{"โœจ", "โœจ", "โœจ", "โœจ", "โœจ", "โœจ"};
        background[2] = new String[]{"โœจ", "โœจ", "โœจ", "โœจ", "โœจ", "โœจ"};
        background[3] = new String[]{"โœจ", "โœจ", "โœจ", "โœจ", "โœจ", "โœจ"};
        background[4] = new String[]{"โœจ", "โœจ", "โœจ", "โœจ", "โœจ", "โœจ"};
        background[5] = new String[]{"โœจ", "โœจ", "โœจ", "โœจ", "โœจ", "โœจ"};
        return background;
    }

    public static String[][] takeHangeul() {
        String[][] HangeulTime = new String[6][6];
        HangeulTime[0] = new String[]{"ํ•œ", "๋‘", "์„ธ", "๋„ค", "๋‹ค", "์„ฏ"};
        HangeulTime[1] = new String[]{"์—ฌ", "์„ฏ", "์ผ", "๊ณฑ", "์—ฌ", "๋Ÿ"};
        HangeulTime[2] = new String[]{"์•„", "ํ™‰", "์—ด", "ํ•œ", "๋‘", "์‹œ"};
        HangeulTime[3] = new String[]{"์ž", "์ด", "์‚ผ", "์‚ฌ", "์˜ค", "์‹ญ"};
        HangeulTime[4] = new String[]{"์ •", "์ผ", "์ด", "์‚ผ", "์‚ฌ", "์œก"};
        HangeulTime[5] = new String[]{"์˜ค", "์˜ค", "์น ", "ํŒ”", "๊ตฌ", "๋ถ„"};
        return HangeulTime;
    }

    public void printHangeulClock(String[][] clockFormat) {
        String[][] HangeulClock = clockFormat;
        System.out.println("๐Ÿ’ซํ•œ๊ธ€์‹œ๊ณ„ ๋”ฐ๋ผ ๋งŒ๋“ค๊ธฐ๐Ÿ’ซ");
        for (int i = 0; i < 6; i++) {
            System.out.print(" " + HangeulClock[i][0] + " ");
            System.out.print(" " + HangeulClock[i][1] + " ");
            System.out.print(" " + HangeulClock[i][2] + " ");
            System.out.print(" " + HangeulClock[i][3] + " ");
            System.out.print(" " + HangeulClock[i][4] + " ");
            System.out.println(" " + HangeulClock[i][5] + " ");
        }
    }

    public String getCurrentTime() {
        LocalDateTime dateTime = LocalDateTime.now();
        DateTimeFormatter formatter = DateTimeFormatter.ISO_TIME;
        String currentTime = dateTime.format(formatter);
        // System.out.println(currentTime); ์‹œ๊ฐ„์ถœ๋ ฅ
        String[] timeArr = currentTime.split(":");
        String hourMinute = String.join(":", timeArr[0], timeArr[1]);
        return hourMinute;
    }

    public String[][] showHourMinute() {
        String hourMinute = getCurrentTime();
        String[][] HangeulData = takeHangeul();
        String[][] clockFormat = showBackground();
        String hour = hourMinute.split(":")[0]; // ์‹œ
        String minute = hourMinute.split(":")[1]; // ๋ถ„
        switch (hourMinute) {
            case "00:00":
                clockFormat[3][0] = HangeulData[3][0];//์ž
                clockFormat[4][0] = HangeulData[4][0];//์ •
                break;
            case "12:00":
                clockFormat[4][0] = HangeulData[4][0];//์ •
                clockFormat[5][0] = HangeulData[5][0];//์˜ค
                break;
            default:
                putHangeulHours(clockFormat, HangeulData, hour);
                putHangeulMinutes(clockFormat, HangeulData, minute);
                break;
        }
        return clockFormat;
    }

    public void putHangeulHours(String[][] clockFormat, String[][] HangeulData, String hour) {
        ///// ์‹œ
        switch (hour) {
            case "01":
            case "13":
                clockFormat[0][0] = HangeulData[0][0];//ํ•œ
                break;
            case "02":
            case "14":
                clockFormat[0][1] = HangeulData[0][1];//๋‘
                break;
            case "03":
            case "15":
                clockFormat[0][2] = HangeulData[0][2];//์„ธ
                break;
            case "04":
            case "16":
                clockFormat[0][3] = HangeulData[0][3];//๋„ค
                break;
            case "05":
            case "17":
                clockFormat[0][4] = HangeulData[0][4];//๋‹ค
                clockFormat[0][5] = HangeulData[0][5];//์„ฏ
                break;
            case "06":
            case "18":
                clockFormat[1][0] = HangeulData[1][0];//์—ฌ
                clockFormat[1][1] = HangeulData[1][1];//์„ฏ
                break;
            case "07":
            case "19":
                clockFormat[1][2] = HangeulData[1][2];//์ผ
                clockFormat[1][3] = HangeulData[1][3];//๊ณฑ
                break;
            case "08":
            case "20":
                clockFormat[1][4] = HangeulData[1][4];//์—ฌ
                clockFormat[1][5] = HangeulData[1][5];//๋Ÿ
                break;
            case "09":
            case "21":
                clockFormat[2][0] = HangeulData[2][0];//์•„
                clockFormat[2][1] = HangeulData[2][1];//ํ™‰
                break;
            case "10":
            case "22":
                clockFormat[2][2] = HangeulData[2][2];//์—ด
                break;
            case "11":
            case "23":
                clockFormat[2][2] = HangeulData[2][2];//์—ด
                clockFormat[2][3] = HangeulData[2][3];//ํ•œ
                break;
            case "12":
            case "0":
                clockFormat[2][2] = HangeulData[2][2];//์—ด
                clockFormat[2][4] = HangeulData[2][4];//๋‘
                break;
        }
        clockFormat[2][5] = HangeulData[2][5];//์‹œ
    }

    public void putHangeulMinutes(String[][] clockFormat, String[][] HangeulData, String minute) {
        /////// ๋ถ„
        String minuteTen = minute.split("")[0];  // ๋ถ„์˜ ์‹ญ์˜ ์ž๋ฆฌ
        String minuteOne = minute.split("")[1];  // ๋ถ„์˜ ์ผ์˜ ์ž๋ฆฌ
        // ๋ถ„ - ์‹ญ์˜ ์ž๋ฆฌ
        switch (minuteTen) {
            case "1":
                clockFormat[3][5] = HangeulData[3][5];//์‹ญ
                break;
            case "2":
                clockFormat[3][1] = HangeulData[3][1];//์ด
                clockFormat[3][5] = HangeulData[3][5];//์‹ญ
                break;
            case "3":
                clockFormat[3][2] = HangeulData[3][2];//์‚ผ
                clockFormat[3][5] = HangeulData[3][5];//์‹ญ
                break;
            case "4":
                clockFormat[3][3] = HangeulData[3][3];//์‚ฌ
                clockFormat[3][5] = HangeulData[3][5];//์‹ญ
                break;
            case "5":
                clockFormat[3][4] = HangeulData[3][4];//์˜ค
                clockFormat[3][5] = HangeulData[3][5];//์‹ญ
                break;
            case "0":
                break;
        }
        // ๋ถ„ - ์ผ์˜ ์ž๋ฆฌ
        switch (minuteOne) {
            case "1":
                clockFormat[4][1] = HangeulData[4][1];//์ผ
                break;
            case "2":
                clockFormat[4][2] = HangeulData[4][2];//์ด
                break;
            case "3":
                clockFormat[4][3] = HangeulData[4][3];//์‚ผ
                break;
            case "4":
                clockFormat[4][4] = HangeulData[4][4];//์‚ฌ
                break;
            case "5":
                clockFormat[5][1] = HangeulData[5][1];//์˜ค
                break;
            case "6":
                clockFormat[4][5] = HangeulData[4][5];//์œก
                break;
            case "7":
                clockFormat[5][2] = HangeulData[5][2];//์น 
                break;
            case "8":
                clockFormat[5][3] = HangeulData[5][3];//ํŒ”
                break;
            case "9":
                clockFormat[5][4] = HangeulData[5][4];//๊ตฌ
                break;
            case "0":
                break;
        }
        if (minuteTen.equals("0") && minuteOne.equals("0")) {
            return;
        } else {
            clockFormat[5][5] = HangeulData[5][5];//๋ถ„
        }
    }
}