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.
I would like to know how to make visuals instead of text, like have a simple pixelated character move in place. and I'm only 13 so this could be a little difficult for me but I owuld really like to learn how to code java so please continue these tutorials.
one problem, i want it to do something, if i type the correct saying.
I tried with this code: Scanner a1 = new Scanner(System.in); String inA1 = a1.next(); if (inA1 = ("hello")){ System.out.println("Do you want to play a game?"); System.out.println("type 'yes' or 'no' to continue");
@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.
Good Video. So what if what you are trying to copy into a variable is something very long. Like a definition or something. Is there an easier way to declare a variable that would include the whole thing you typed.
Stupid question..what if i wanted to add a question after it says "welcome...so n so.." would I needs to add a string that went along with the question or how would I go about that?
hey man, i know these vids are old but i was just wondering if u could explain something to me...
i dont understand how the first second bit works, i understand the output line, but don't understand how the scanner line can work out where you have typed your first name and where you have typed your second name?
I am very new to programing. If you can post some videos where you may tell about basics of java e.g. main method, how to call functions in main, packages importance etc.
i tried to find a password with java script but a only could reveal the one that is already there in the text box...how can i find a password i don't know using java script?
Can you make a program using model-view-controller to make a TicTacToe program between two players, and NO java.swing or whatever. I just want the players to type in the number of the square they want to place their character of 'X' or 'O'
If Possible, could you please upload a video of how to write a sample program of application of GUI together with basic coding including calcuation.for example , in banks's data storage system,lists of monthy savings of clients are requested at UserInterface of program to key in and the average saving of individual client per year is being calculated and shown on the User Interface again.
would u be able to put what you typed (your scrpit) into the comments. just cause i cant read the screen. im learning java atm, and my teacher is S#!^.
Good conclusion for those earlier tutorials, i watched those too. Nice job. I'd like to see some graphical ones, and hopefully simple platform games, dunno if that's asking to much. Thanks :)
sir,. can u transfer this program that has an javax.util.*; package into the scanner. I want it to be input in scanner .,. coz, this is our project (the UCF(Highest Common Factor) :( ,. and i really confuse to my lesson huh!.. can u do it for me Sir?..this is the link "h t t p://h1.ripway,com/logtech/HCF.java"
this is runnable program,.. sir all i want is to traslate it into scanner. thanks in advance .. hope u can make it for me
ced, "h t t p://h1.ripway,com/logtech/HCF.java" it is (ripway(dot)com i can't put URL on this commnet; i also make a spacing for h t t p;) this site is work properly ,.. please help.. i need this program ASAP thanks..
Your video was very helpful to me. Thanxs a bunch. Also are there any more videos that u have created. An extra hint to improve on your video's in the future
1. Maybe speak a little clearer
2. Find a way to zoom in on the code for those with bad eyes like me.
Thank you for your tutorials. They have helped me lots. Just started college and learning Java. I cannot seem to learn it. Have to write a program choosing 6 lottery numbers out of about 40. Numbers have to be between 1-40. The program has to count how many times these 6 numbers are called. Was wondering if you may be able to help me with this. Thank you.
Well put a space because we want it to k? @ 41 seconds your not making sense. what do u want it to do?
theoriginalfatdonkey 2 weeks ago
@theoriginalfatdonkey He started to say "we want it to..." and then stopped himself and said, "okay".
MegaJakeroo 15 hours ago
@MegaJakeroo Sweet!
theoriginalfatdonkey 3 hours ago
please post more videos on java!!
rockingrabi 3 months ago
Oh okay thanks anyway. Uh... trying
ihavethelastusername 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
@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
If I wanted it to display something like "Welcome cedric, how are you today?" how would I do that?
ihavethelastusername 7 months ago
@ihavethelastusername
System.out.println("Welcome " + first + ", how are you today?");
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 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
I love it. I'm finally understanding computer coding! Thanks so much
PureOptic 8 months ago
I would like to know how to make visuals instead of text, like have a simple pixelated character move in place. and I'm only 13 so this could be a little difficult for me but I owuld really like to learn how to code java so please continue these tutorials.
maribakumon 9 months ago
This taught me loads, Thanks!
one problem, i want it to do something, if i type the correct saying.
I tried with this code: Scanner a1 = new Scanner(System.in); String inA1 = a1.next(); if (inA1 = ("hello")){ System.out.println("Do you want to play a game?"); System.out.println("type 'yes' or 'no' to continue");
Scanner a2 = new Scanner(System.in);
String inA2 = a2.next();
}
}
And got an error:
required: boolean if (inA1 = ("hello")){
help me please, thanks.
joshsora2000 10 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
Good Video. So what if what you are trying to copy into a variable is something very long. Like a definition or something. Is there an easier way to declare a variable that would include the whole thing you typed.
Judge4utube 1 year ago
Thank you very much for your help. Your explanations are awsome, it's a shame you didn't upload any more videos explaining java.
elchami743 1 year ago
Stupid question..what if i wanted to add a question after it says "welcome...so n so.." would I needs to add a string that went along with the question or how would I go about that?
geeno123 1 year ago
hey man, i know these vids are old but i was just wondering if u could explain something to me...
i dont understand how the first second bit works, i understand the output line, but don't understand how the scanner line can work out where you have typed your first name and where you have typed your second name?
nelsoneill117 1 year ago
This has been flagged as spam show
i need help please
kr4zzym3 1 year ago
good work man.
I am very new to programing. If you can post some videos where you may tell about basics of java e.g. main method, how to call functions in main, packages importance etc.
it will be really good
thanks man
thbaig1 1 year ago
2:46 lol
ElvesEatChocolate 1 year ago
i tried to find a password with java script but a only could reveal the one that is already there in the text box...how can i find a password i don't know using java script?
13coko 1 year ago
"aww fuck" LMAOL
bulgarianprincessili 1 year ago
hey trying to install eclipse on window 7 64bit can you send me link where to find all. using jGrasp at mo...
gmanireland 1 year ago
hey trying to install eclipse on window 7 64bit can you send me link where to find all. using jGrasp at mo.
gmanireland 1 year ago
Very good job.... just try to zoom it a litlle bit!!!!! way to go!!!!
borrao76 1 year ago
Can you make a program using model-view-controller to make a TicTacToe program between two players, and NO java.swing or whatever. I just want the players to type in the number of the square they want to place their character of 'X' or 'O'
danceelephants 2 years ago
hi. can you post a vid where graphics is involved?
donnecyril 2 years ago
Im sorry sir but you are seriously a really bad teacher.
It's also weird how it takes so many lines to do something as easy as that is in Java while in C++ it takes much less and is far more simpler.
PredragTV 2 years ago
Lol, that is totally bullcrap, C++ is using as much lines as Java does (theoretically even more)
eCapax 1 year ago
Good video...but I can't see what you're typing even in HQ...
Can't tell the differences between + and = and *
Is there maybe any Written tutorials you can link me to?
ItsjustProductions 2 years ago
is there a website or sumthing that has all the system.out.print ect. commands on it because iwil never remember all the coding, thx
Morric603 2 years ago
If Possible, could you please upload a video of how to write a sample program of application of GUI together with basic coding including calcuation.for example , in banks's data storage system,lists of monthy savings of clients are requested at UserInterface of program to key in and the average saving of individual client per year is being calculated and shown on the User Interface again.
myat22 2 years ago
Rofl does someone have comp sci homework? XD
MrProgrampro 2 years ago
i got this error
Cannot instantiate the type Scaner
The method next() is undefined for the type object
The method next() is undefined for the type object
at program.main(program.java:9)
Pls help me out
amthin 2 years ago
Comment removed
MrKiller00224 2 years ago
to amthin:
did you import the scanner?
(import java.util.Scanner)
and you wrote Scaner, so make sure you spell evereything correct in your code.
MrKiller00224 2 years ago
Maybe u spelled "Scanner" wrong?
MrProgrampro 2 years ago
Wow!! Finally a tutorial I understand!! Thank you very much ;)
artkozak 2 years ago
i would like to see a tutorial explaining every code in the jave ee script, at least if u did that you would get 1,000+ subs and ratings
RobJohnB95 3 years ago
it's awesome!
keep up the good work!
fazamea1 3 years ago
again, im following what youre saying, but im not getting what youre typing, could you tell me please what all are you typing?
beefsheep 3 years ago
would u be able to put what you typed (your scrpit) into the comments. just cause i cant read the screen. im learning java atm, and my teacher is S#!^.
Fawkes6666666 3 years ago
Nice explaining, but I barely can see the words
wangr3 3 years ago
Good conclusion for those earlier tutorials, i watched those too. Nice job. I'd like to see some graphical ones, and hopefully simple platform games, dunno if that's asking to much. Thanks :)
Pablos544 3 years ago
good effort and great-video however please avoid F-word @2:48...It doesn't look professional...anyway good attempt
szaidi73 3 years ago
I'm into it, but make the screen readable.
davedavidgraham 3 years ago
can you not provide something longer,
keep in your mind that making words readable would be more effective.
tedtdu 4 years ago
hey i've gotta problem with my java i'm playing an online game but somtime like 5 min or soo the game gets closed and a stupid file comes with error
hqbif 4 years ago
yes! i'm done i huh!.. i got it now... ced, NVM it i got it now.. i solve my problem ,.
brontok19 4 years ago
using OOP(Object Oriented Program) sir? that i suggest i think it's hard to understand for a new like me,.. but, it's really important to know..
brontok19 4 years ago
sir,. can u transfer this program that has an javax.util.*; package into the scanner. I want it to be input in scanner .,. coz, this is our project (the UCF(Highest Common Factor) :( ,. and i really confuse to my lesson huh!.. can u do it for me Sir?..this is the link "h t t p://h1.ripway,com/logtech/HCF.java"
this is runnable program,.. sir all i want is to traslate it into scanner. thanks in advance .. hope u can make it for me
brontok19 4 years ago
sorry sir it is not an javax.util.*; huh! it's an javax.swing.*;
brontok19 4 years ago
ok lol, you can just call me Cedric or Ced. Umm I tried that link, but it did not work,
You can import as many classes as you want. So im not entirely sure if that was your question..
YES, I would be more than happy to do an OO tutorial, thanks for the idea!, and Im glad to help!
sircedric88 4 years ago
ced, "h t t p://h1.ripway,com/logtech/HCF.java" it is (ripway(dot)com i can't put URL on this commnet; i also make a spacing for h t t p;) this site is work properly ,.. please help.. i need this program ASAP thanks..
brontok19 4 years ago
ok ill see what i can do... umm one more thing, sorry, but what is the objective of this program... it;s a school assignment huh?
lol ok ill see what i can do
sircedric88 4 years ago
thanks ced... but i think you can do it,..
brontok19 4 years ago
OK i ran the program, and i must say, very IMPRESSIVE!!
I am not the best with GUI's, but ill try. It seems to work fine when I use Eclipse, and the input is responive, so is this for a non-GUI thing.
Could I get your screenName or Email to make this easier?
sircedric88 4 years ago
Your video was very helpful to me. Thanxs a bunch. Also are there any more videos that u have created. An extra hint to improve on your video's in the future
1. Maybe speak a little clearer
2. Find a way to zoom in on the code for those with bad eyes like me.
BEsides that... GREAT JOB-AL
Osirisboy07 4 years ago
Ya thank you!
This was one of my first attempts at screen capturing, tutorials, etc..
But I think that I have improved, but I am no longer making Java tutorials, because I think I do not have enough expertise to be a teacher.
I am though coninuing my After Effects tuorials
sircedric88 4 years ago
Thank you for your tutorials. They have helped me lots. Just started college and learning Java. I cannot seem to learn it. Have to write a program choosing 6 lottery numbers out of about 40. Numbers have to be between 1-40. The program has to count how many times these 6 numbers are called. Was wondering if you may be able to help me with this. Thank you.
Tracey.
Terike2 3 years ago
ohh thanks,.. i'll wait
brontok19 4 years ago
is there anything that you want to know in particular? cuz i need ideas for new tutorials
sircedric88 4 years ago
it's really small -.-"
brontok19 4 years ago
sorry, im going to redo it
sircedric88 4 years ago
thanks
brontok19 4 years ago
ya, no problem
sircedric88 4 years ago