yes,i found this answer to this tipical question in java.take this and enjoy it......................................... for(int i=0; i<1; System.out.println("Hello World!"),i++); or for(int i=0; i<1; System.out.println("Hello World!"),i++) { }