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.
Well put a space because we want it to k? @ 41 seconds your not making sense. what do u want it to do?
theoriginalfatdonkey 1 week ago
please post more videos on java!!
rockingrabi 3 months ago
@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
connormc711 4 months ago
Oh okay thanks anyway. Uh... trying
ihavethelastusername 5 months ago
@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 5 months ago
@betterdrummerjoe Ohhhh okay. Hey you wouldnt happen to know anything about the android libraries would you?
ihavethelastusername 5 months ago
@ihavethelastusername
System.out.println("Welcome " + first + ", how are you today?");
betterdrummerjoe 5 months ago
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.
NeoXC 6 months ago
If I wanted it to display something like "Welcome cedric, how are you today?" how would I do that?
ihavethelastusername 7 months ago
@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/docs/api/java/lang/String.html
FlyveKristoffer 7 months ago