Please use a real editor. Newcomers who see this video will think that Notepad is acceptable as a programmer's editor and never find personal fulfillment.
"""If any one want to make some fast cash at home an want to kno more about this work from home you can e mail me at bossboy71@yahoo.com an this not a scam
You do a good job at getting into detail with each piece of code which is very helpful. You should pick back up on the series even though it's been a couple years. Great tutorials, thumbs up.
Dude, you're so sweet ;) "Float can hold smaller numbers then double. Double can hold extremely big numbers, float can hold small numbers - OH - not smaller than - it still hold quite large numbers but not as large as double". Haha, love your videos!!
Nothing, but I think it would return an error because he used the name "myFloat" twice(as a float and a double) I'm not sure if that's aloud in Java. I don't know that much about it(hence watching this tutorial :3). It works in some languages and doesn't in some. But overall great tut.
Thank you, aphonik!!! Yes...the 8 primative data types, as seen in this video, store values DIRECTLY into memory. A reference variable, such as String stores a reference to that variable. See D.S. Malik 5th ed, Java Programming, page 120. There's even a picture.
This comment has received too many negative votesshow
Ugh! Vidoes like this annoy me on YouTube. If your gonna make a video please get your facts straight. A vairble does not store data it is a reference to data. Also, variables are not the core of a program. I have written many programs with no variable whatsoever, I just used value returning methods within algorithms
Barrrry, I believe that Float cannot hold a number with precision (decimal places). You should use double...or if you need to manipulate rounding and precision in further detail, use BigDecimal.
I have found the answer to my problem; Firstly Floats DO hold decimal numbers, secondly all float values must have an 'F' at the end for example; myFloat = 2.25F;
I hope that helps anyone else who has the same problem.
There is no difference in those two statements, both the variables hold a value of 50. Only the data type differs. Bytes can hold values from -128 to 127. Int's can hold numbers from -2,147,483,648 to 2,147,483,647. So if I wanted to hold a value of 1 billion (1,000,000,000) I wouldn't be able to store that in an byte. I would however be able to store it in an int.
That is correct, you will save memory space. However, just make sure you don't store a value thats higher than the maximum the data type can hold - or some strange stuff will happen =]
Please use a real editor. Newcomers who see this video will think that Notepad is acceptable as a programmer's editor and never find personal fulfillment.
dbb008 1 month ago in playlist Uploaded videos
You assigned myFloat twice?
Even though they're two data types wouldn't it cause confusing if you called them for a argument?
01Feb2011 3 months ago
Nice vid, but bump up the sound on ur mic plz :D
Kbster14 3 months ago
This has been flagged as spam show
does anyone know why this doesnt work?
final double g = 16.0
double t = 35.5
System.out.println(1 / 2 * (g * t * t));
System.out.println("meters per second squared");
any help would be appreciated
hobosmurf 4 months ago
and what is char used for im soooo lost...i should just watch em all b4 asking questions
sniperx15rulz 4 months ago
wat is boolean used for like idk wat is true or false like watever u mean omg its so hard to say ummm welll....fail;
sniperx15rulz 4 months ago
bite myvariable lol =]
sniperx15rulz 4 months ago
thank you for the videos! keep it up!
supernova360 8 months ago
Thank you very much for your tutorials! I learned a whole lot today!
jomann18 1 year ago
This has been flagged as spam show
"""If any one want to make some fast cash at home an want to kno more about this work from home you can e mail me at bossboy71@yahoo.com an this not a scam
YungMell1 1 year ago
You do a good job at getting into detail with each piece of code which is very helpful. You should pick back up on the series even though it's been a couple years. Great tutorials, thumbs up.
MrCoolio0760 1 year ago
Dude, you're so sweet ;) "Float can hold smaller numbers then double. Double can hold extremely big numbers, float can hold small numbers - OH - not smaller than - it still hold quite large numbers but not as large as double". Haha, love your videos!!
mdsky 1 year ago
You should be a Pilot - You have just the voice!
wezternator 1 year ago
definitly agree. it wouldn't compile if he declares myFloat twice, should have made his double variable called myDouble.
other than that, simple clean tutorial, great for beginners!
BabyLatina1010 2 years ago
Thanks and great.. But you should probaby call the double variable "myDouble" instead of repeating "myFloat"
YourHumanRights 2 years ago
Awesome work. Clear and basic, thanks for this :)
hermesthephilosopher 2 years ago
Aweet man this rocks!
leperchaun76 2 years ago 3
Tyvm! You have so many, and I need to learn java! Sweet vid, 5 stars!
also, earrape 4:19 XD
MrProgrampro 2 years ago 6
gracias gran aporte.
PaulKaizer24 2 years ago 3
Thanks! this really helped me out! and btw, i love your accent! :D
mayavenkat 2 years ago 11
if you run this what is the out put?
med07 2 years ago
Nothing, but I think it would return an error because he used the name "myFloat" twice(as a float and a double) I'm not sure if that's aloud in Java. I don't know that much about it(hence watching this tutorial :3). It works in some languages and doesn't in some. But overall great tut.
sasuke2910 2 years ago
Thank you, aphonik!!! Yes...the 8 primative data types, as seen in this video, store values DIRECTLY into memory. A reference variable, such as String stores a reference to that variable. See D.S. Malik 5th ed, Java Programming, page 120. There's even a picture.
AnitaLife27 2 years ago 2
This comment has received too many negative votes show
fake
stevieb6966 2 years ago
This comment has received too many negative votes show
Ugh! Vidoes like this annoy me on YouTube. If your gonna make a video please get your facts straight. A vairble does not store data it is a reference to data. Also, variables are not the core of a program. I have written many programs with no variable whatsoever, I just used value returning methods within algorithms
whiteboy2k10 2 years ago
your videos are awesome yar
can you suggest me a video tutorial showing
inputs during runtime please .
Ozous 2 years ago
very good but that My float typed in twice was a bit confusing, btw you did a preety good job and ill keep on your series to the end :)
emperusDS 2 years ago
Comment removed
103798 2 years ago
byte -128 to + 127
short -32,768 to +32,767
int -2,147,483,648 to +2,147,483,648
long -9,223,372,036,854,775,808 to +9,223,372,036,854,775,808
ezklride 2 years ago 4
HAHAHA byte myVariable!!!
thanks for the vid!
sergeantRC 3 years ago 7
lmao i didnt see that at first
madkimaster 2 years ago
int can store with in -65000 to 65 000.
liuupson 3 years ago 2
Your copying michaels javas vtm.
CoderSal 3 years ago
Thanks, this finally cleared up my confusion.
itsjareds 3 years ago
thanks ! this is really useful
norzale 3 years ago
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
i'm pretty sure he meant to say
"double myDouble = 10.746;"
He said he was kind of nervous because he only had 10 minutes, and it's pretty nervous in general just to teach whoever you're going to.
Good work though, I hope you put a video tutorial on input/output command lines(no JOptionPanes/Dialog Boxes)- I really really need help on those.
shadowpal2 4 years ago 3
you left two myFloat variables heheh any way your tutorials are way more explanatory than my school professor =S good job!
xb0nzaix 4 years ago
Anyone get this error?
found : double
required: float float myFloat = 2.25; ^
1 error
It seems we can get around this by declaring a float as: float myFloat = 2.25f;
Although this seems silly to have to do! am i missing something?
perktastico 4 years ago
i dunno but i am apparently missing it to because i have the same error....i dunno why but dude any one help? whats up? lol
darkisback67 4 years ago
yeah it should say...
double myDouble = 10.746;
you probably got an error due to the duplicate myFloat entries.
no worries, though! ;)
ruddyadam 4 years ago
Very good tutorial once again.
archer184 4 years ago
This comment has received too many negative votes show
his voice is not cleary.. sob
GIGIMARZ 4 years ago
Yo Thx alot
kQr339 4 years ago
Great tutorial.
typeracing85 4 years ago
Man ur scripts are so nice i do you do it?? mine don't go in the same shape as yours help me!!
farhanfyzee 4 years ago
good staff would mind speak up a bit your voice is too low bro.
jibrila 4 years ago
is it possible to hack other computers with java? i dont want to hack people i just want to protect myself
wjcb2006 4 years ago
at 4:19 you would have better kept the microphone a little further away from your mouth.
JacobSijsma 4 years ago
i have learned more in 20 min with this than 3 weeks with books thanks.
wonderful68 4 years ago
University Professors should come here to observe how it should be done. Shame on them.
Please give us a database connectivity tutorial in the same style. Unless you have to learn it yourself first in which case I'll glady wait.
FarquinFimTimWimBim 4 years ago
this tutorials are really helping me
voidstuff 5 years ago
nice, would be good with some syntax highlighting
and i dont think the complier thinks 'ab' is a string. Its only ever a string with double quotation marks as you pointed out early.
tamrix 5 years ago
When i compile the code in the video i keep getting the following error.
Variables.java:19: possible loss of precision
found : double
required : float float myFloat = 2.25; ^
1 error
i cant see anything wrong with the code it is as follows;
class Variables { public static void main(String[] args) { float myFloat = 2.25; }
}
barrrrrrrrrry 5 years ago
Barrrry, I believe that Float cannot hold a number with precision (decimal places). You should use double...or if you need to manipulate rounding and precision in further detail, use BigDecimal.
jimadams1968 5 years ago
I have found the answer to my problem; Firstly Floats DO hold decimal numbers, secondly all float values must have an 'F' at the end for example; myFloat = 2.25F;
I hope that helps anyone else who has the same problem.
barrrrrrrrrry 5 years ago
nice upload thanks man am ry to learn java ur vid came i handy
ronny22 5 years ago
There is no difference in those two statements, both the variables hold a value of 50. Only the data type differs. Bytes can hold values from -128 to 127. Int's can hold numbers from -2,147,483,648 to 2,147,483,647. So if I wanted to hold a value of 1 billion (1,000,000,000) I wouldn't be able to store that in an byte. I would however be able to store it in an int.
=]
aphonik 5 years ago 2
So, if I want to store 100, it is recommendable to use byte instead of int? Or Short for 500? Thus we can save space on the memory? Is that right?
5h4rk 5 years ago
That is correct, you will save memory space. However, just make sure you don't store a value thats higher than the maximum the data type can hold - or some strange stuff will happen =]
aphonik 5 years ago
What is the diference between:
byte myByte = 50
int myInt = 50
?
5h4rk 5 years ago