Input
Output
>> javac Main.java
>> java Main
10
20
30
40
50