0

Can anyone tell me what I am doing wrong with this 4 line code?

I am trying to copy the code shown in the java tutorial but I think that the thing that confuses me is the spacing and the use of the symbols for the last two lines. https://code.sololearn.com/c245ttuVKJ19/?ref=app mod edit: moved link from question title to body ^_^

8th Jan 2018, 10:34 PM
Marquis Patton
7 Answers
+ 9
Most of computer languages, including Java, are case sensitive: your mistakes are to write 'string' instead 'String' and 'system' instead 'System' ^^
8th Jan 2018, 10:45 PM
visph
visph - avatar
+ 10
Usable link: https://code.sololearn.com/c245ttuVKJ19/?ref=app Hint: Links are not clickable if you put them in the question or tag fields :)
8th Jan 2018, 10:41 PM
jay
jay - avatar
+ 10
mmm visph is probably best answer, thanks anyhow :)
8th Jan 2018, 10:50 PM
jay
jay - avatar
+ 10
class Myclass { public static void main(String[] args) { System.out.println("I am learning java"); } } //here it is
9th Jan 2018, 2:17 AM
Jaydeep Khatri
Jaydeep Khatri - avatar
+ 6
First of all, Javascript is NOT Java
8th Jan 2018, 10:43 PM
Dapper Mink
Dapper Mink - avatar
+ 3
1. system needs to be System.out.println then string on your code needs to be String with this > [] right next to it. class Myclass { public static void main(String[] args) { System.out.println("I'm learning Java"); } }. Correct way to do it^^^ As tip for learning java, make sure you do it a couple times maybe more so you remember how to do it when needed.
8th Jan 2018, 10:48 PM
Jaren Dogan
Jaren Dogan - avatar
+ 1
This app is amazing.
9th Jan 2018, 3:02 AM
Marquis Patton