Isn't your println statment outside the while loop though? Because you don't have these {} after while loop, the first empty stament is the only one that's in loop.
Try removing line 6 and then you will see "Welcome to Java" printing 127 times. And then add "Welcome to
Java - 2" after that so you will see this printing only once after printing the first one 127 times. Then try adding {}, you will see all the difference.