created java solution for problem 1

added shortcut as naming the java file 1javaloop caused problems