언어/JAVA

BufferedReader

김어찐 2021. 8. 2. 10:41
728x90
public class BufferedReaderTest {
	public static void main(String[] args) throws IOException {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));

		char [] ch = in.readLine().toCharArray();
		
		for(char c :ch)
		{
			System.out.println(c);
			
		}
		StringTokenizer st = new StringTokenizer(in.readLine()," ");
		int i = Integer.parseInt(st.nextToken());
		int j = Integer.parseInt(st.nextToken());
		System.out.println(i+"//"+j);
	}
}

 

입력 및 출력

728x90