0

why is it that we leave gaps between certain codes?

example: import java.util.Scanner; class MyClass { public static void main(String[ ] args) { Scanner myVar = new Scanner(System.in); System.out.println(myVar.nextLine()); } } i.e the gap between import and class

14th Aug 2018, 9:39 PM
Kelvin Portuphy
Kelvin Portuphy - avatar
2 odpowiedzi
+ 9
Blank lines are optional and entirely up to the author of the code. However, adding blank lines helps to make the code more readable by visually separating different components.
14th Aug 2018, 9:49 PM
Eduardo Petry
Eduardo Petry - avatar
0
oh ok thanks.
17th Aug 2018, 5:44 PM
Kelvin Portuphy
Kelvin Portuphy - avatar