[코드업 기초 100제] [기초 - 출력] 1001 ~ 1008 자바 풀이
              
          2022. 2. 6. 20:05ㆍ코딩테스트/코드업
728x90
    
    
  반응형
    
    
    
  https://github.com/haessae0/MCTP
1001. 출력하기 01
public class codeup1001 {
	public static void main(String[] args) {
		System.out.print("Hello");
	}
}
1002. 출력하기 02
public class codeup1002 {
    public static void main(String[] args) throws Exception {
        System.out.print("Hello World");
    }
}
1003. 출력하기 03
public class codeup1003 {
    // https://codeup.kr/problem.php?id=1003
    public static void main(String[] args) throws Exception {
        System.out.println("Hello");
        System.out.println("World");
    }
}
1004. 출력하기 04
public class codeup1004 {
    // https://codeup.kr/problem.php?id=1004
    public static void main(String[] args) throws Exception {
        System.out.print("\'Hello\'");
    }
}
1005. 출력하기 05
public class codeup1005 {
    // https://codeup.kr/problem.php?id=1005
    public static void main(String[] args) throws Exception {
        System.out.print("\"Hello World\"");
    }
}
1006. 출력하기 06
public class codeup1006 {
    // https://codeup.kr/problem.php?id=1006
    public static void main(String[] args) throws Exception {
        System.out.print("\"!@#$%^&*()\"");
    }
}
1007. 출력하기 07
public class codeup1007 {
    // https://codeup.kr/problem.php?id=1007
    public static void main(String[] args) throws Exception {
        System.out.print("\"C:\\Download\\hello.cpp\"");
    }
}
1008. 출력하기 08
public class codeup1008 {
    // https://codeup.kr/problem.php?id=1008
    public static void main(String[] args) throws Exception {
        System.out.println("\u250C\u252C\u2510");
        System.out.println("\u251C\u253C\u2524");
        System.out.println("\u2514\u2534\u2518");
        // StringBuilder sb = new StringBuilder();
        // sb.append("u250C\u252C\u2510").append("\n");
        // 시스템 아웃 보다는 스트링빌더 쓰는게 더 좋다.
    }
}728x90
    
    
  반응형
    
    
    
  '코딩테스트 > 코드업' 카테고리의 다른 글
| [코드업 기초 100제] [기초 - 산술연산] 1038 ~ 1046 자바 풀이 (0) | 2022.02.07 | 
|---|---|
| [코드업 기초 100제] [기초 - 출력변환] 1031 ~ 1037 자바 풀이 (0) | 2022.02.07 | 
| [코드업 기초 100제] [기초 - 데이터형] 1028 ~ 1030 자바 풀이 (0) | 2022.02.07 | 
| [코드업 기초 100제] [기초 - 입출력] 1019 ~ 1027 자바 풀이 (0) | 2022.02.06 | 
| [코드업 기초 100제] [기초 - 입출력] 1010 ~ 1018 자바 풀이 (0) | 2022.02.06 |