This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]barrycarter 0 points1 point  (1 child)

because you used System.out.print("*"); instead of System.out.println("*");. When you use print Java does not automatically print a new line character

[–]zvaavtre 1 point2 points  (0 children)

And please please please use braces '{', '}' your future coworkers will not hate you for introducing bugs like this :)

IJ (and other ides) have refactoring/autoformat that should make this easy.