+ 2

What are the endlines in java or there is none

1st May 2021, 1:26 PM
George Okoth
George Okoth - avatar
4 Answers
+ 1
George Okoth Use Semicolon (;) after every statement.
1st May 2021, 1:33 PM
A͢J
A͢J - avatar
+ 1
line breaks are not unique to Java. They're special characters that mark the end of a line. In Java, the best general way to break a line is to use methods like System.out.println instead of System.out.print. You can learn more about new-line or line breaks at: https://en.wikipedia.org/wiki/Newline
1st May 2021, 1:33 PM
Josh Greig
Josh Greig - avatar
0
George Okoth What do you mean by endlines?
1st May 2021, 1:29 PM
A͢J
A͢J - avatar
0
The statement has ended
1st May 2021, 1:31 PM
George Okoth
George Okoth - avatar