import java.io.IOException;

public class InputStreamEx {
 public static void main(String[] args) throws IOException {
  System.out.println("입력하삼..");
  
  int _byte;
  
  while((_byte=System.in.read()) != -1){

   if(_byte == 10 || _byte ==13) continue;   //10 스페이스바, 13 엔터
   if(_byte == 113 || _byte ==81) break; //알파벳 대문자......
   char c = (char)_byte;
   System.out.printf("%s(%d)", c, _byte); 
  }

 }

}

+ Recent posts