Also, something I thought while watching your vid...
You can make execution a lot easier with batch files (i think..)...well, I KNOW compiling would work, anyway...just go into notepad, and make a file:
javac %1
then Save As "Java Compiler.bat"
Now, any .java programs you drag onto it will be compiled instantly! The same may work with a "java %1" program, although seeing as how normal batch files exit immediately when finished, I don't know :/..try it!
"Could not find d main class:Arithmetic" means that your computer can't find the .class file.... are you sure that the compiling process was successfully carried out?... hope you already fixed this :)
Thank YOU !!!!!!!!!! SO fricken much!!! I am taking an online class for java and was lost but your videos are descriptive and follow everything needed to know step by step. Awesome job and thank you for helping me pass my class!!!
Thanks a lot for taking the time to do this. It's a big help. I programmed all through out highschool 15 years ago, and am getting back into it, but had not done OOP or Java yet, so it is great to have your tutorial.
had the same error and was slamming my head against the monitor because I didn't understand why....finally figured out that it is a small "a" (arithmatic) not a capitol "A" like he has
i made a file coompiled it sucessfully and runed it it gave ma a message saying Exception in thread "main" java.lang.NoClassDefFoundError: calculator
ok, it compiles it right with no errors, but it wont display anything and there is an error there, what is wrong, is my java old? i got it about 2 weeks ago
Great tutorials. How would I assign the operator of a calculation (ex. +, -, %) into a variable and then allow the calculation to proceed with that operator in a variable? I just get errors when I try.
alright man thanks.your tutorials are very good.the only thing i would like to add is that when you make some changes in a program and just save it it won't make the changes you must save as again (at least that's what is happening to me :)
instead of: int numberone,numbertwo,total; numberone = 8436; numbertwo = 72; total = numberone + numbertwo; is it right to say : int numberone = .. ; int numbertwo = .. ; int total = numberone + numbertwo; i studied C++ and i was shown this way to set variables does it work in java also ?
i love your voice!
itsbriebo 1 month ago
I know you posted this video five years ago and you'll probably never see this comment but, THANK YOU SO MUCH!!!!!!!
Glindino 4 months ago
It's very rare to find such a good tutorial :]
twobarells 4 months ago in playlist PROGRAMMING - Java - Basics
Thanks! I didn't know that! lol
supernova360 7 months ago
great job, but the quality of the video is bad, i can not see clearly what you write
abojoory 1 year ago
Many thanks for the tutorials!!!
d0840001 1 year ago
Thank U
georg0829 1 year ago
these are great but is there anyway you could make the picture more clear
bigjhunt90 1 year ago
com/watch?v=Y-oEeADZdM8
flavioscorpions 1 year ago
this is an excellent video , It really helps me understand better,
do you have a video explaining about variables with 2 method in the same class .
Thanks,
ctcsandra 1 year ago
Thank you so much, this is much easier to understand than reading my books
chernobyll09 2 years ago
I copied your Arithmatic.java file the exact same way you have it but my file won't compile do you know why its doing this?
MrHeLmEtMaN 2 years ago
is it required to save the file as "arithmitic.java" or can you call it math.java or haha.java?
TurtlezHelpVideos 2 years ago
you can name the .java file anything as long as when you use javac you type the correct file. the new class file will be the same name as the class.
spongewardk 2 years ago
you have to use the exact class name as the filename.
So if you do:
class Math{
the name of your .java should be Math.java
hope that helped!
Flowzah 2 years ago
class name must match file name
juleskate456 2 years ago
Nice one!
Also, something I thought while watching your vid...
You can make execution a lot easier with batch files (i think..)...well, I KNOW compiling would work, anyway...just go into notepad, and make a file:
javac %1
then Save As "Java Compiler.bat"
Now, any .java programs you drag onto it will be compiled instantly! The same may work with a "java %1" program, although seeing as how normal batch files exit immediately when finished, I don't know :/..try it!
Hope this helps (like you)!
MrProgrampro 2 years ago
If you didn't want them to end immediately you can add pause.
beastbrb 2 years ago
just out of curiousity ...what kinda job you do? coz you're really good at teaching.
selva20 2 years ago 12
i think you mean braces not bracket in terms precedence
dagospo 2 years ago
Thank you sir, your videos are awesome and helpful! Im getting back into java thanks to you!
DoMeASolidVideo 2 years ago
thanks.
milanbobpatadlas 2 years ago
good job mate
kikee122 2 years ago
evertym i type 'javac arithmetic..." java control panel pops-up,
and wen i type "java arithmetic"
dis one appears "Exception in thread "main"java.lang.NoClassDefFoundError: Arithmetic"
"Could not find d main class:Arithmetic. Program will exit."
wat will i do.....?
alracbianc 2 years ago
"Could not find d main class:Arithmetic" means that your computer can't find the .class file.... are you sure that the compiling process was successfully carried out?... hope you already fixed this :)
cheers
miskatopa 2 years ago
You rule dude, I cant wait to see the next videos!
KnezMish 2 years ago
THANK VERY MUCH!!! Awesome Tutorials!!!! Great work! U r the man!!!
GregFekas 2 years ago 3
Very helpful Thanks!
jmbeen 3 years ago 7
Thank YOU !!!!!!!!!! SO fricken much!!! I am taking an online class for java and was lost but your videos are descriptive and follow everything needed to know step by step. Awesome job and thank you for helping me pass my class!!!
aaron1976 3 years ago
thanks u r great.
Hatrix89 3 years ago
hey could any one tell me how to get values in output.I mean how to give two no in cmd prompt and calculate.like
"enter 1st vaue to add:xx
enter 2nd value to add:xx
the answer is:xxxx "
I want to enter value in cmd prompt not in note pad...if any buddy knows pls help me
saddamdon 3 years ago
int numberOne = 8436, numberTwo = 72, total = numberOne + numberTwo;
System.out.println("Total: " + total);
TheDominis 3 years ago
Thank you, that's helped me to understand variables a great deal, your explanation, was better than my Lecturer at university.
phinpj 3 years ago
very well done !!!
atluschooty 3 years ago
Hey, got a question, how do you do squares and square roots?
Amir4king 3 years ago
You are an excellent teacher!
mc293 3 years ago 2
what site did you learn from?
}:)
TheProgramer15 3 years ago
how do you do stuff like
numberOne == (then someones input)
TheProgramer15 3 years ago
This guy delivers! //Youtube's Audio preview ftw!!
fighterpilot2k1 3 years ago
Excellent video!!!!!!!
thx!!!
XxdennixX2 3 years ago
awesome explanation again, thanks very much!
sumfortyone 4 years ago
watch Creating a Ruby Weblog in 99 Sec.
barkodar 4 years ago
Excellent video!!!
Metallicock69 4 years ago
You explain Everyting brilliantly, fair play. Quality!!
adamavich01 4 years ago 2
Thanks a lot for taking the time to do this. It's a big help. I programmed all through out highschool 15 years ago, and am getting back into it, but had not done OOP or Java yet, so it is great to have your tutorial.
PianoWallaby 4 years ago 2
hey wat i just found out from watching a different tutorial is that when you go to run it you have no extention
so in the comand prompt to compile you do the (javac Arithmatic.java)
then to run it you just do (java Arithmatic) then it will run
llaammpp 4 years ago
Yep that did it thanks a lot
AdmiralMath 3 years ago
i got the exeption in thread"main" java.lang.NoClassDefFoundError: Arithmatic.java
i know lots of people are also getting this error when trying to run even though it compiles just fine.
smart321 4 years ago
had the same error and was slamming my head against the monitor because I didn't understand why....finally figured out that it is a small "a" (arithmatic) not a capitol "A" like he has
ctbasscatcher 4 years ago
same thing happened to me.
bulutcocuk 3 years ago
iam on the gaming side of java useing moparscape
but i found these helpfull :D thanx
sub367 4 years ago
i made a file coompiled it sucessfully and runed it it gave ma a message saying Exception in thread "main" java.lang.NoClassDefFoundError: calculator
narshil1 4 years ago
you named the filename in the compiler wrong probly.
"main" java.lang.NoClassDefFoundError: calculator
im pretty sure means it cant find the file from what i remember
Nojtb 4 years ago
thx i you were right
narshil1 4 years ago
Thank You, Excellent tutorials
Fibonachi13 4 years ago
ok, it compiles it right with no errors, but it wont display anything and there is an error there, what is wrong, is my java old? i got it about 2 weeks ago
rsswordhurts 4 years ago
Never mind i found out what i did wrong lmao stupid spelling. thxs great tutorials love them.
thelonewolf666 4 years ago
Hey i have a Q when i try to compile i get the error
Arithmatic.java:3: <identifier> expected
public^static void main<String[] args> { do you know what i did wrong the < and > are acctually ( )
thelonewolf666 4 years ago
please sir can i have your email , iwant to ask you about somethings in the java ...
ASAP
RAFED9 4 years ago
i am not a pro but post the code or send it to me
wonderful68 4 years ago
Great tutorials. How would I assign the operator of a calculation (ex. +, -, %) into a variable and then allow the calculation to proceed with that operator in a variable? I just get errors when I try.
mrhankymk 5 years ago
srry meant to say "while parsing" not without
sukmyballz 5 years ago
hey i got a prob, everytime i try to compile this i get an error sayin 'reached end of file without parsing'
how can i fix this?
sukmyballz 5 years ago
alright man thanks.your tutorials are very good.the only thing i would like to add is that when you make some changes in a program and just save it it won't make the changes you must save as again (at least that's what is happening to me :)
euthanized 5 years ago
euthanized 5 years ago
Yes. Does exactly the same thing. =]
aphonik 5 years ago
@euthanized wtf im sooo lost
sniperx15rulz 3 months ago
This is great. You make it sound so simple, compared to stuff on variables I have read.
Thanks Man
mjd550 5 years ago
dumb question, what is your suggestion for a guy to which can't wrap his head around OOP
johnwedd 5 years ago
Awesome stuff, dude. Thanks.
Koopakiller 5 years ago
i like
Moonstallion 5 years ago