This might sound stupid but i am a new learner n i'm realy confused at the end of the statement about the semicolon. in this program i didnt notice n put a semicolon after the if statement n i was not able to compile for a very long time until i rectified my mistake. How do i know wt to put at the end of a statement n why is there no semicolon at the end of the if statement????? Help......
thanks a lot im familiar with java just that im competing for it on UIL tommrow just using this for last min studying up to this vid it like covers alot
I hate Java... I don't understand any of it... Ive been studying it for 6 months & still feel like ive got knowhere with it... IM going to fail my fucking exam.
Can anyone tell me what ElseIf is in Java? Like: public class Main { public static void main(String[] args) { Int a = 20; If(a = 20) { System.out.println("abc"); //What should I write instead of "elseif"? } elseif(a = 21) { System.out.println("cba"); } } }
You're close, just put a space between the 'else' and the 'if' like so: if(a == 20){ ... } else if(a == 5){ .... } else { .... } Note that you must use the '==' operator for equality checking, not '=' which is the assignment operator. The java compiler is smart enough to give you an error for this, but not all languages do (like C for example.)
how to read variable in java like how we are doing in c++ that is cin>>a; like this how to read the variable and hw to print that variable which we read
just starting watching these again got back to java tryed going back to the books. noticed javas all in one book reference (for dummies) is the worst book you can possibly own. every single class in the entire book has errors. a code simple enough just to have a alert box with the words hello world had 14 errors... aint a good book. thank god for these.
DUDE! I wouldn't even think 14 errors could exsist in a file as short and simple as a Hello World alert box. I'm glad I caught this befor I went into town because I was gonna buy that book.
i've watched all of your videos and was just wondering if you had a job as a senior programmer? I'm looking forward to become a programmer or a Linux Admin. Keep up the good work. =)
Wow this is lib anti semite terrorist propoganda.We need 2 fight the iranins in iran so we dont have 2 fight thm hre.U libs need 2 b detaind untl ucan prove u r not a teorist.If any iraqi tries to take my FREEDOM Iwill blow up his cave cmd cntr.IranNchina hve been stckpling WMDs2 useaginst us an our Israeli friends in th form of a mushroom cloud in th global wr n terror.Whn th final nuclear bttle comes2our home streets we need world govt.+hive mind+every1 get microchip so prs bush cn kep us safe
I LOVE THIS GUY!!!!!!!!!! THANK YOU SO MUCH! This vid is so much more efficient and clear than any of the lectures in my class. Ivelearned more in 30 minutes with these vids than 6 hours in class.
thanks for the tutorial. unfortunately my computer doesn't saves my programs under the extension of java but it takes the text ".java" as part of the file name. what can i do in this situation?
Easier to read? I'm don't fully agree with that, but I can think of better reasons to put them in. Good tutorial though, you know you have a relaxing voice ? Perhaps you could make a CD: relaxation for stressed programmers ;)
Your recordings are WAAAYYYYYYY tooo quiet. I have everything jacked up and I can't hear you over my comp fans.
Nettikturbo 3 months ago
These videos are definately helping me with my intro to java class, thank you soo muchhhh
supernova360 7 months ago
if(youtubers approval >=10000000000000){ system.out.println("you have the top vid for java on youtube :D");
skullking42 8 months ago
thumbs up if(true)
dx221000 9 months ago
hey 1 question can you do an else if statement?
yamxa996 1 year ago
Nice, but since when did Notepad become the #1 Java IDE?
AJSunsetComputerAid 1 year ago 2
This has been flagged as spam show
This might sound stupid but i am a new learner n i'm realy confused at the end of the statement about the semicolon. in this program i didnt notice n put a semicolon after the if statement n i was not able to compile for a very long time until i rectified my mistake. How do i know wt to put at the end of a statement n why is there no semicolon at the end of the if statement????? Help......
Pam21ify 1 year ago
Comment removed
Pam21ify 1 year ago
holy crap! man you are way better than my fuckin' prof. Seriously.
santoory 1 year ago 2
You forgot to mention that operators "&&" and "||" can only be used between boolean values.
prusaks 2 years ago
Could've been better, use a IDE m8 :) Notepad sucks <3
xaxur 2 years ago
Thanks a lot! :]
G56Ace 2 years ago
thanks a lot im familiar with java just that im competing for it on UIL tommrow just using this for last min studying up to this vid it like covers alot
samus1003 2 years ago
dude! dont breathe so heavily into your mic!
great guide though :P
lolcat23 2 years ago
Dude, did you considered to open a class to teach?If yes,I'am going to enroll.
Thanks for the effort
slovakivo 2 years ago
Comment removed
Raiden738 2 years ago
i am a comsci student but i hate programing subject hhehehehe hope you can help me lol.. thanks
charissethea 2 years ago
Comment removed
Raiden738 2 years ago
java is realy hard... ..
charissethea 2 years ago
compared to C its easy
coolshoos 2 years ago 4
dude java is very easy
leanbow12 2 years ago
This has been flagged as spam show
listen u comfortably numbed cocksmoker.>>>> come here to me & say that... & I will shit down your throat.
CUNT!
mickjoG 2 years ago
This comment has received too many negative votes show
someone write that program for me.
mickjoG 2 years ago
Shut up you whining idiot.
ComfortablyNumbed 2 years ago
write a program, am going to Fail fucking exam...
If MickJog fails exam;
{
}
he is going to go fuck a thousand virgins in hell.
mickjoG 2 years ago
*compile error*
Raiden738 2 years ago
I hate Java... I don't understand any of it... Ive been studying it for 6 months & still feel like ive got knowhere with it... IM going to fail my fucking exam.
mickjoG 2 years ago
Can anyone tell me how do you do "scanf" something like in C programming.
chipmonktheodore 2 years ago
Leisure3212333 2 years ago
SiegeX1 2 years ago
@Leisure3212333
do you understand the fundementals of Java??
because the indentation is vital
Nerfsoldier5 1 year ago
Huh? Yes, I do, and what do you mean indentation is vital? It's just for readability LOL
Leisure3212333 1 year ago
ya i guess so... idk my dad is in software and is teaching me small amounts of Java and emphasizes on the indentation if I miss something... *sigh*
I might just learn C/C++ because they are better virus languages...
programzor 1 year ago
@programzor ur an asshole, i hate viruses.
KoolDJ123 1 year ago
what if i want to use an 'if' statement but manually put in the value? and not use integers..
for example,
System.out.print("Name:");
String name = scanner.nextLine();
thn what response i get is to what name i put..
for example, i put A thn i get response A and B i get response B, C and D i get response X.
how do i do that? thanks in advanced!! :D
ifan209 2 years ago
erm how you do you get java to read human input so i can get java to read the age that the person inputs?
05pricej 3 years ago
Do you still need help with that? If so, PM me...
DavinTerrizzi 2 years ago
Keyborad.readInput();
pissib 2 years ago
cheers
05pricej 2 years ago
how to read variable in java like how we are doing in c++ that is cin>>a; like this how to read the variable and hw to print that variable which we read
saddamdon 3 years ago
can you show how to make a simple payroll program?
meltforce 3 years ago
I just switched from C++ to Java and I think that Java is 100000000 times easier.
akuko2 3 years ago 9
yes but C++ and C is kickass lanuages...
KuriosMetallica 3 years ago
Only for gaming and interfaces. Can't program robots with it.
cheese319 3 years ago 2
just starting watching these again got back to java tryed going back to the books. noticed javas all in one book reference (for dummies) is the worst book you can possibly own. every single class in the entire book has errors. a code simple enough just to have a alert box with the words hello world had 14 errors... aint a good book. thank god for these.
Nojtb 4 years ago 2
DUDE! I wouldn't even think 14 errors could exsist in a file as short and simple as a Hello World alert box. I'm glad I caught this befor I went into town because I was gonna buy that book.
STM021085 3 years ago 2
splendid.... wow man this stuff is good! i understand you better than i understand my teacher haha ok good job hope to see more of this
yea and if you put complicated programs up there make sure you make them games =D or try to make most of them about games
good job man!
binadm 4 years ago 3
Great!!!! Very very useful tutorials. Waiting for the video tutorial on classes and objects
javaCareer 4 years ago 3
This has been flagged as spam show
If you want to get some certification(cisco microsoft oracle sun linux ...etc), you'll search "certmagic" by google.
and , you go to certmagic and,
You'll bookmark certmagic page as a favorite.
rtr5y6uy56u7riurtuir 4 years ago
hi,
your tutorials are great but too easy. User "8170056" is totaly right.
I can´t wait your next more comlicated tutorials.
Good job
watcher855 4 years ago
can you upload some much complicated programs?
those program that you given is too easy..
hope that you will make a program that is much harder..
thanks for your clear discuss..
hope that many people learned a lot about java progreamming..
because this programming language is very cool..
I enjoy JAVA... GBU guyzz!
8170056 4 years ago
i've watched all of your videos and was just wondering if you had a job as a senior programmer? I'm looking forward to become a programmer or a Linux Admin. Keep up the good work. =)
daydr33m3r 4 years ago
This has been flagged as spam show
Wow this is lib anti semite terrorist propoganda.We need 2 fight the iranins in iran so we dont have 2 fight thm hre.U libs need 2 b detaind untl ucan prove u r not a teorist.If any iraqi tries to take my FREEDOM Iwill blow up his cave cmd cntr.IranNchina hve been stckpling WMDs2 useaginst us an our Israeli friends in th form of a mushroom cloud in th global wr n terror.Whn th final nuclear bttle comes2our home streets we need world govt.+hive mind+every1 get microchip so prs bush cn kep us safe
prokkets 4 years ago
You are excellent. I've learned more than a full six weeks of school. Keep them coming.
xTriad 4 years ago
I LOVE THIS GUY!!!!!!!!!! THANK YOU SO MUCH! This vid is so much more efficient and clear than any of the lectures in my class. Ivelearned more in 30 minutes with these vids than 6 hours in class.
onemiketwelve 4 years ago 4
This is great. keep up the good work
gooeychooey22 4 years ago
Thx... Great tutorial!
CD: relaxation for stressed programmers, /signed
Holm4700 4 years ago
thanks for the tutorial. unfortunately my computer doesn't saves my programs under the extension of java but it takes the text ".java" as part of the file name. what can i do in this situation?
jak1986 4 years ago
thnx for the advice...ur vids really did helped me to kno the basics =)
lilazeonboa 5 years ago
Easier to read? I'm don't fully agree with that, but I can think of better reasons to put them in. Good tutorial though, you know you have a relaxing voice ? Perhaps you could make a CD: relaxation for stressed programmers ;)
oncebarn 5 years ago
Is it OK, to leave out the braces when you only have one instruction ?
example:
if (myval < 2) mycode = 1;
else mycode++;
oncebarn 5 years ago 2
Yeah, but its better to but braces in - it's easier to see whats going on.
aphonik 5 years ago
Yea nice work this sorta relates to php 1 thing u need to turn up ya microphone volume :)
randomassname 5 years ago
Thank you this tutorial really helped.
losethisname 5 years ago