(코드업/Java) 기본 100 Part 1. 출력 1001 – 1008

문제 1001 Hello 출력

public class Main{
    public static void main(String() args){
        System.out.print("Hello");
    }
}
안녕하세요

문제 1002 Hello World 출력

public class Main{
    public static void main(String() args){
        System.out.print("Hello World");
    }
}
헬로 월드

문제 1003

안녕하세요

세계 출력

public class Main{
    public static void main(String() args){
        System.out.println("Hello\nWorld");
        
    }
}
안녕하세요
세계

1004호 ‘안녕하세요’ 출력 (단, 작은따옴표도 출력됩니다.)

public class Main{
    public static void main(String() args){
        System.out.print("\'Hello\'");
    }
}
‘안녕하세요’

문제 1005 “안녕하세요 세계” 인쇄 (단, 큰따옴표도 함께 출력됩니다.)

public class Main{
    public static void main(String() args){
        System.out.print("\"Hello World\"");
    }
}
“안녕하세요 세계”

문제 1006 “!@#$%^&*()”인쇄 (단, 큰따옴표도 함께 출력됩니다.)

public class Main{
    public static void main(String() args){
        System.out.print("\"!@#$%^&*()\"");
    }
}
“!@#$%^&*()”

문제 1007 “C:\다운로드\hello.cpp” 인쇄 (단, 큰따옴표도 함께 출력됩니다.)

public class Main{
    public static void main(String() args){
        System.out.print("\"C:\\Download\\hello.cpp\"");
    }
}
“C:\다운로드\hello.cpp”

1008호 “C:\다운로드\hello.cpp” 인쇄 (단, 큰따옴표도 함께 출력됩니다.)

public class Main{
    public static void main(String args()){
        System.out.println("\u250C\u252C\u2510");
        System.out.println("\u251c\u253c\u2524");
        System.out.println("\u2514\u2534\u2518");
    }
}
┌┬┐
├┼┤
└┴┘