java program to print hello world 10 times