백준 등 알고리즘
codeup 기초 100제 1004번 [기초-출력] 출력하기04(설명)
박도치
2023. 3. 23. 22:49
'Hello'를 출력하는 문제이다.
작은 따옴표가 포함되는 문장을 출력하는 방법은 다른 특수문자와 마찬가지로 \특수문자 를 이용하면 출력할 수 있다.
public class Main {
public static void main(String[] args) {
System.out.println("\'Hello\'");
}
}