added more code

print2.java