2009년 4월 11일 토요일

자바 콘솔에서 스트링 문자 받기

import java.io.*;

public class Text {

public static void main (String[] args) {
String inputLine = null;
try {
BufferedReader is = new BufferedReader(new InputStreamReader(System.in));
inputLine = is.readLine();
} catch (IOException e) {
System.out.println("IOException: " + e); 
}
}
}



댓글 없음:

댓글 쓰기