java program to print hello world 10 times using while loop