//yy.java -- by tsaiwn@csie.nctu.edu.tw // modified from yy.cpp // javac yy.java // java yy // java yy > xx.txt import java.io.*; class yy { public static void main(String xx[ ]) throws Exception { new yy( ); } yy( ) throws Exception { PrintStream cout = System.out; PrintStream cerr = System.err; String buf; BufferedReader cin = new BufferedReader( new InputStreamReader( System.in ) ); cout.print("ha ha ha ..."); cout.flush( ); cerr.print("passwd: "); buf = cin.readLine(); cout.print("you say .."); cout.println(buf); // with newLine } // yy constructor }// class