Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Java tutorial 1 - The Basics (Part 3)

Loading...

Sign in or sign up now!
31,502
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Aug 4, 2007

This is a Java tutorial on printing, retrieving input, and transforming it into a String. I know this is very basic, but I have more advanced lessons coming.

Let me know if you like it, and contact me for any help/info.
myspace.com/sircedric888
or
just message me through youtube, I will get back to you.

You should have JDK 5.0, because I will teach about user input through a Scanner class.
Please rate

Sorry, some technical errors made me create this in 3 videos.

Category:

Howto & Style

Tags:

License:

Standard YouTube License

  • likes, 3 dislikes

Link to this comment:

Share to:
see all

All Comments (59)

Sign In or Sign Up now to post a comment!
  • Well put a space because we want it to k? @ 41 seconds your not making sense. what do u want it to do?

  • please post more videos on java!!

  • @NeoXC ya you are right with that. Scanner is also used in alot of System.in codes to tell java what to do from your key board

  • Oh okay thanks anyway. Uh... trying

  • @ihavethelastusername No, sorry. I'm just trying to relearn Java, and I happened to know the answer to your question :) Are you developing apps?

  • @betterdrummerjoe Ohhhh okay. Hey you wouldnt happen to know anything about the android libraries would you?

  • @ihavethelastusername

    System.out.println("Welcome " + first + ", how are you today?");

  • I'm trying to fully understand what's going on in this program, since I'm transferring from a college taught purely in C++ to a college taught purely in Java. "Scanner" seems like it's basically a linked list class. It also seems as though each bit of data is stored in a node, and transverses to the next node (hence the .next() function), when there's new data.

    I'm totally new to Java, so I was wondering if that's correct.

  • If I wanted it to display something like "Welcome cedric, how are you today?" how would I do that?

  • @joshsora2000 In Java you use "==" for equals, "=" is used to assign values or change what pointers point at, thats why you get the compile error... Since strings in java are objects, you can't use the "==", it will only check if the pointers points at the same object. So the class String has a method called equals, wich compares characters in the string objects.

    So what you wan't would be something like:

    if (inA1.equals("hello"))

    download.oracle.com/javase/6/d­ocs/api/java/lang/String.html

View all Comments »
Loading...
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