+ 1
Im trying to print Hello World using Java with the String Concatenation
What I did is String x, y; x = "Hello"; y ="World"; System.out.println(x+" "+y); Unfortunatley it shows me an error, So i would need your help
6 Antworten
+ 2
You have to initialize your variables with ""
String x="",y="";
0
I have already mintioned the code
0
But in the tutorial it says what I did
0
To be clear the error is in the last command but I dont know what mistake does it has
0
Figured that out, my double quotes were in the wrong places, thanks anyway