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

7th Oct 2017, 7:13 AM
OmniSlash
OmniSlash - avatar
3 Respostas
+ 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!
7th Oct 2017, 7:28 AM
Tamra
Tamra - avatar
+ 3
As DK's said, in "println" it is small L and not capital i. It is read as "print line".
7th Oct 2017, 8:59 AM
Meharban Singh
Meharban Singh - avatar
+ 1
First of all, small L. Second of all, thanks.
7th Oct 2017, 2:14 PM
OmniSlash
OmniSlash - avatar