public class HelloWorld{ public static void main(String[] args){ int x=1; System.out.println("Before the Loop"); while (x<4){ System.out.println("In the loop"); System.out.println("Value of x is "+x); x=x+1; } System.out.println("This is after the loop"); } } 回復更多評論