Why is a method body filled with semicolons acceptable syntax?
java, methods
Solution
Because a simple semicolon next to another semicolon is an empty statement. So, lot of semi colons next to each other are lot of empty statements. It compiles and runs with no problems.
Problem
``` public static void main(String[] args) { System.out.println("World Hello!");;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;; ;;;;;;;;; ;;;;;;; ;;;;;;;;;;;;;; ;;;;; } ``` The normal person is me wants to say: "What are all of those semicolons doing there!?"