my first java code in csdn.net import java.io.*; public class ApplicationLineIn { public static void main(String args[]) { String s=""; int i=1; System.out.println("Please Enter a String :"); try{ BufferedReader in= new BufferedReader(new InputStreamReader(System.in)); s = in.readLine(); }catch( IOException e){ } for (;i<4;i++){ System.out.println("You've entered string :"+ s);} } }