Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (24)

Sign In or Sign Up now to post a comment!
  • String is an object. not a data type

  • how do you make singel quote..(before and after the T) on a macbook pro?

  • this guys so awesome 

  • Thank you so much for this series!

  • Im just starting to get interested in Java Programming, I seen the first 3 & its helping me alot Thanks dude

  • Wtf is this shit, everytime I type in something it says its wrong like "class test" how the fuck can that be wrong?

  • Ah, Man you are SOOOOO helpful! :D

    Thank you so much for putting in your time to make these tutorials.

    YOU ROCK!

  • 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

    Change the ':' after the word, into an equal sign. Then it will work.

  • @TheFurion101 Had the same problem.. Just kept editing in my codes and it worked..

  • }, How do you write this character? I can't find it on my keyboard?

  • @astroboomboy

    It is beside the 'P' character on the keyboard. Hold shift while clicking one of the characters beside 'P'.

  • @astroboomboy noobishness

  • yep!

  • It's called concatenate a string at 6:45 i.e the plus (+) sign inside the the print function.

  • Comment removed

  • 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

    You got to change the 'system.out.print' to 'System.out.print'...you didn't add the capital.

  • are you 13???!!

  • @javasbass

    Haha ya I am.

  • @slushfilmz the new generation!!....congrats!!!! hahaha

  • mine only said Hey this is my first variable! it did not say T :(

  • @jacob7ism

    Try copying and pasting this below your error:

    char letter = 'T';

    System.out.println(letter);

    Hope that helped!

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more