0
Whats wrong with println
class PracticeJava { public static void main(String[] args) { System.out.println(âHello"); } } When I press run in java playground println colored blue and an error shows up pointing to the word println. I have researched and checked my spelling multiple times. Is this an error on my part or a glitch
4 Answers
+ 11
Huh, I tried running this on the Code Playground, and it's the string text that's blue. The error I get is "unclosed string literal".
The first quotation mark is angled quotes. The compiler doesn't recognize that character, so make sure you're using straight quotes!
+ 3
As DK's said, in "println" it is small L and not capital i.
It is read as "print line".
+ 1
First of all, small L. Second of all, thanks.