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 ^_^
7 Answers
+ 9
Most of computer languages, including Java, are case sensitive: your mistakes are to write 'string' instead 'String' and 'system' instead 'System' ^^
+ 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 :)
+ 10
mmm visph is probably best answer, thanks anyhow :)
+ 10
class Myclass {
public static void main(String[] args) {
System.out.println("I am learning java");
}
}
//here it is
+ 6
First of all, Javascript is NOT Java
+ 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.
+ 1
This app is amazing.