Dude, every time I do it JUST LIKE YOU, it says the following:
Exception in thread "main" java.lang.RuntimeException: Uncompilable source code - variable word might not have been initialized at test.main(test.java:7)
Java Result: 1
This is my code:
class test
{ public static void main(String[] args) { String word: "Hey this is my first variable!"; System.out.println(word);
String is an object. not a data type
rubiksrox224 19 hours ago
how do you make singel quote..(before and after the T) on a macbook pro?
TheSalikom 6 days ago
this guys so awesome
b112895 2 weeks ago
Thank you so much for this series!
TVUvids 1 month ago
Im just starting to get interested in Java Programming, I seen the first 3 & its helping me alot Thanks dude
Javicute05 1 month ago
Wtf is this shit, everytime I type in something it says its wrong like "class test" how the fuck can that be wrong?
Zirrcamelot2 1 month ago
Ah, Man you are SOOOOO helpful! :D
Thank you so much for putting in your time to make these tutorials.
YOU ROCK!
hiphoptoad23 2 months ago
Dude, every time I do it JUST LIKE YOU, it says the following:
Exception in thread "main" java.lang.RuntimeException: Uncompilable source code - variable word might not have been initialized at test.main(test.java:7)
Java Result: 1
This is my code:
class test
{ public static void main(String[] args) { String word: "Hey this is my first variable!"; System.out.println(word);
}
}
TheFurion101 4 months ago
@TheFurion101
Change the ':' after the word, into an equal sign. Then it will work.
slushfilmz 4 months ago
@TheFurion101 Had the same problem.. Just kept editing in my codes and it worked..
MickeyJacobsen 2 months ago
}, How do you write this character? I can't find it on my keyboard?
astroboomboy 4 months ago
@astroboomboy
It is beside the 'P' character on the keyboard. Hold shift while clicking one of the characters beside 'P'.
slushfilmz 4 months ago
@astroboomboy noobishness
b112895 2 weeks ago
yep!
astroboomboy 2 weeks ago
It's called concatenate a string at 6:45 i.e the plus (+) sign inside the the print function.
eflip1 4 months ago
Comment removed
JakeHollomonFilms 5 months ago
I keep running the string and it responds like this:
Exception in thread "main" java.lang.RuntimeException: Uncompilable source code - Erroneous sym type: system.out.print at test.main(test.java:6)
Java Result: 1
BUILD SUCCESSFUL (total time: 3 seconds)
my code looks like:class test
{ public static void main(String [] args) { String word = "got it!"; system.out.print(word); }
}
why won't it run?
run42032 7 months ago
@run42032
You got to change the 'system.out.print' to 'System.out.print'...you didn't add the capital.
slushfilmz 7 months ago
This has been flagged as spam show
Helps me a lot
01340135 8 months ago
are you 13???!!
javasbass 11 months ago
@javasbass
Haha ya I am.
slushfilmz 11 months ago
@slushfilmz the new generation!!....congrats!!!! hahaha
javasbass 11 months ago
mine only said Hey this is my first variable! it did not say T :(
jacob7ism 11 months ago
@jacob7ism
Try copying and pasting this below your error:
char letter = 'T';
System.out.println(letter);
Hope that helped!
slushfilmz 11 months ago