๋ฐ์ํ
- BufferedReader, StringTokenizer, PrintWriter ๋ฅผ ์ฌ์ฉํด์ ํ์๋ค.
- ์๋(์๊ฐ ์ด๊ณผ)๋ฅผ ์๊ฐํ์๋ค.
1001๋ฒ
public class Main {
public static void main(String[] args) {
System.out.println("Hello");
}
}
1002๋ฒ
public class Main {
public static void main(String[] args) {
System.out.println("Hello World");
}
}
1003๋ฒ
public class Main {
public static void main(String[] args) {
System.out.println("Hello");
System.out.println("World");
}
}
1004๋ฒ
public class Main {
public static void main(String[] args) {
System.out.println("'Hello'");
}
}
1005๋ฒ
public class Main {
public static void main (String[] args) {
System.out.println("\"Hello World\"");
}
}
1006๋ฒ
public class Main {
public static void main (String[] args) {
System.out.println("\"!@#$%^&*()\"");
}
}
1007๋ฒ
public class Main {
public static void main(String[] args) {
System.out.println("\"C:\\Download\\hello.cpp\"");
}
}
1008๋ฒ
์ด๊ฑด ๊ฑด๋๋ฐ์๋ค.
1009๋ฒ
1009๋ฒ์ ์๋ค. ์์ง..?
1010๋ฒ
import java.util.*;
import java.io.*;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
StringTokenizer st = new StringTokenizer(br.readLine());
int a = Integer.parseInt(st.nextToken());
br.close();
PrintWriter pw = new PrintWriter(System.out);
pw.println(a);
pw.flush();
pw.close();
}
}
๋ฐ์ํ
'Algorithm > CodeUp ๊ธฐ์ด 100์ ' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[์ฝ๋์ ๊ธฐ์ด 100์ -JAVA] 1021~1030๋ฒ (0) | 2023.02.27 |
---|---|
[์ฝ๋์ ๊ธฐ์ด 100์ -JAVA] 1011~1020๋ฒ (0) | 2023.02.27 |
[์ฝ๋์ ๊ธฐ์ด 100์ ] - 1090๋ฒ (0) | 2021.04.12 |
[์ฝ๋์ ๊ธฐ์ด 100์ ] - 1089๋ฒ (0) | 2021.03.19 |
[์ฝ๋์ ๊ธฐ์ด 100์ ] - 1088๋ฒ (0) | 2021.03.18 |
๋๊ธ