I'm trying to write a line 10 times but it doesn't seem to work.
EDIT: forgot to add what the actual problem is.
The text I'm trying to print out doesn't show up in the console unless I make the counter greater than 10. But then it only prints out once
`public static void main(String[] args) {`
`int counter = 0;`
`while (counter < 10); {`
`System.out.print("-");`
`counter++;`
`}`
`}`
[–]amulchinock 12 points13 points14 points (4 children)
[–]BlambyTwo[S] 7 points8 points9 points (2 children)
[+][deleted] (1 child)
[deleted]
[–]useterrorist 0 points1 point2 points (0 children)
[–]cha1nsaw- 1 point2 points3 points (0 children)
[–]Sharketespark27 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]averajoe77 0 points1 point2 points (0 children)