Scanner
Scanner 특징
BufferedReader
BufferedReader 특징
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String st = sc.nextLine();
int num = sc.nextInt();
double num2 = sc.nextDouble();
}
}
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String st = br.readLine();
}
}
참고
https://velog.io/@langoustine/Scanner-VS-BufferedReader
https://dlee0129.tistory.com/238