public class superCheezyGuy public static void main (String args[]){ System.out.println("Thumbs up if you are less than 18 and you are watching this!")
example.. double balance = 90000; System.out.println("you haz " + balance + " dollas"); balance + 99.0; and the plus is red and it says invalid assignment operator
wtf.. im confused.. i cant do ANYTHING wit + - = ANY OF IT unless the variable is an int. otherwise anything else scanner double anything dosent work... WHYYYYYYYYY.. that basically makes it impossible for the user to change anything at all...
@TheRAfreak no you just realize that you can laugh at everyone while explaining it and their like wut we haz no brain power... and then make games and their like ZOMGZ O_O
@DCM0Dz You're probably going to want to. Even if you're doing simple games now, you might do bigger games in the future and those will probably have some math in them.
@TrollingAround because the Math methods are 'static' meaning they can be used without creating a Math object. That's why main is 'public void STATIC main(String[] args) {}' so the computer can run the main class without making an 'apples' object.
My math commands wont work all of a sudden! They were working fine, then i copied the info and put it onto a different class, and now the pow,abs,ect.. wont work at all! It says it isn't a known method, please help!!
@WiziLiCe You really didn't know how to add, subtract, multiply and divide? You didn't know how to round numbers? Square root? Your maths teachers should be ashamed.
If square root is shown by "sqrt", and cube root by "cbrt", how do you get nth-root (4th root, 5th root, etc.)?
it's called exaggerating, by no means i'm trying to be harsh on this reply, just so y'all know. But still imo bucky is teaching us java in a better way.
@tuberokz why to ask for function? you just have to make a new function/class that reads the input number, store it on a variable and then use an IF sentence to decide if it should be rounded by ceil or floor :)
@tuberokz why ask for functions? just create a new TUNA public function/class that reads the number and use an IF sentence to decide if it should be round with ceil or with floor and there you have it :)
@DeathStarLazor Are you sure he meant that? His original post is "sqrt of 9 is -3 AND 3..." which means sqrt(9) = +3 and -3, which is wrong. Am I mistaken here? If yes, I apologise to you and yodiboy of course.
@DeathStarLazor I don't think he says that, except if my English are not helping me with this. He said that 'sqrt of 9 is -3 AND 3...' meaning that if we have the equation x = sqrt(9) then the results are x=+-3, which is wrong. If I didn't get right what he said then I apologize. If we have x^2 = 9 then x=+-3, but it's not the same with sqrt.
Bucky I love your tutorials and I have one suggestion, you always have a print line in them, how come you don't make a method that would just do that for you so you dont have to keep putting System.out..println(); ? just wondering.
A good tip is to doing the exact same thing that bucky is doing at the same time on your own computer, it gets less tedious if u are going to watch them all for an exam or something :) learn by doing ftw
@dreadwing93 You can use the power function to create radicals (square root, cube root, etc.). A number raised to the 0.5 power is the same as the square root function. Thus, if you wanted to take the cube root of a number it would simply be that number raised to the power of one-third.
i would love to know the legitimate reason to downplay Bucky? If it took you 25 video to find out that his method doesn't work for you, your a lost cause.
@andrew142009 it calculates the power of a number... x to the power of y is pow(x, y) so 3 to the power of 4 (3x3x3x3) is pow(3, 4) which results in 81.
min,max methods are pretty usefull when u wan't your variables to be with in a certain values. example: variable = math.max(0, math.min(10, variable)
are there any other roots?
Frogfish999 23 hours ago
public class superCheezyGuy public static void main (String args[]){ System.out.println("Thumbs up if you are less than 18 and you are watching this!")
}
SuperCheezyGuy 1 day ago in playlist Java Tutorials (thenewboston)
Lol, Math Squirt
ssj10naruto 1 day ago
why does (Math.pow(8, 1/3)) result in 1.0?
Cycyryable 2 days ago
public class YouTube;
public static void main(String args[]){ if(you.are <=18){ System.out.println("Thumbs Up"); }else{ System.out.println("Never mind, Thumbs Up again"); }
}
PixelDeBurner 4 days ago
example.. double balance = 90000; System.out.println("you haz " + balance + " dollas"); balance + 99.0; and the plus is red and it says invalid assignment operator
dragonthewatcher 5 days ago
wtf.. im confused.. i cant do ANYTHING wit + - = ANY OF IT unless the variable is an int. otherwise anything else scanner double anything dosent work... WHYYYYYYYYY.. that basically makes it impossible for the user to change anything at all...
dragonthewatcher 5 days ago
This has been flagged as spam show
dragonthewatcher 5 days ago
@dragonthewatcher can anyone guess what that would say? 1337 101
dragonthewatcher 5 days ago
Comment removed
dragonthewatcher 5 days ago
I really wish I would have learned java while I was in algebra. I could've just made a program to do my homework for me!!!!!!!!!
TheWayOfTheSwag 2 weeks ago in playlist Java (Beginner) Programming Tutorials 2
@TheWayOfTheSwag my computer ate my homework..
dragonthewatcher 5 days ago
thumbs up if you are <17 and learning java
XxxTheProGamerzxxX 3 weeks ago in playlist Java (Beginner) Programming Tutorials 28
@XxxTheProGamerzxxX thumbs up if you can buy alcohol
paintbaiijnk3 1 week ago in playlist Java (Beginner) Programming Tutorials
@paintbaiijnk3 thumbs up if you dont give a shit :D drunkard :P
dragonthewatcher 5 days ago
@dragonthewatcher -pats your head- calm down, no need to be so jumpy
paintbaiijnk3 5 days ago
Math.PI() is also important
Iboshido 1 month ago
tutorial # 25, and I'm here under my own free will.... aww crap, im a nerd
TheRAfreak 1 month ago 21
@TheRAfreak no you just realize that you can laugh at everyone while explaining it and their like wut we haz no brain power... and then make games and their like ZOMGZ O_O
dragonthewatcher 5 days ago
Ahhh, fun days:
System.out.println(Math.max((Math.PI),Math.pow(Math.ceil(380.9843385853), Math.floor(6.483955232958))));
L3gendArch3r 1 month ago in playlist Java Programming Tutorials
@L3gendArch3r 3.058791354808281E15
dragonthewatcher 5 days ago
I CAN FINALLY USE MATH FOR SOMETHING COOL!!!!
thebigbang100 2 months ago 4
do I need to watch these if I want to develop some simple games?
DCM0Dz 2 months ago
@DCM0Dz You're probably going to want to. Even if you're doing simple games now, you might do bigger games in the future and those will probably have some math in them.
C0GSniper 2 months ago in playlist Java Programming Tutorials
So before he had it at public static void main(String args[])
But now he always has it has public static void main(String[] args)
I've kept it the as public static void main(String args[]) and everything seems to work fine, so does it make a difference?
omg123596 2 months ago
@omg123596 no, you can put the brackets before or after it doesnt matter
mcfundash1 2 months ago in playlist Java Programming Tutorials
@omg123596
no, it's totally the same.
tonilocoable 1 month ago
MY afro is burning me
RandomMalcolm 2 months ago in playlist Java Programming Tutorials
how would you limit the decimals being displayed? like for example you cant have like 10800.000001 dollars.
XrayXD22 2 months ago
@XrayXD22 double roundTwoDecimals(double d) { DecimalFormat twoDForm = new DecimalFormat("#.##"); return Double.valueOf(twoDForm.format(d));
}
C0GSniper 2 months ago in playlist Java Programming Tutorials
@XrayXD22 first
import java.text.*;
DecimalFormat formatter = new DecimalFormat("0.00"); // "0.00" is how u want to format it
then System.out.println ( formatter.format(value) ); // value can be expression or whatever
that should do the job :)
tonilocoable 1 month ago
Comment removed
SoloGamerz1 2 months ago in playlist Java Programming Tutorials
i've got abs in my car =0
Erikeriik 2 months ago
i dont remember learning the pow method. can someone tell me which past tutorial bucky shows us it please? thanks!
XZeferX 2 months ago in playlist Java Programming Tutorials
nvm. didnt know he meant Math.pow :p
XZeferX 2 months ago
bucky is great
TheAshishadhav 2 months ago
sqrt eh :]
TheFanaticFox 3 months ago
cool beans, bt you should rename it to math tricks so more ppl would watch it.
jcbrown61 3 months ago
Ugh math class -.-, this one i like.
xkaar3lx 3 months ago
"All the methods of the math clath and the firth one..."
Don'th worry bucky we underthtand you.
xDD
jan3541 4 months ago 9
Comment removed
jan3541 4 months ago
Bucky, you make math applicable and learn-able. Please quit whatever you do and come teach my Calculus class.
TheSciurusDoomus 4 months ago in playlist Java Programming Tutorials 2
This has been flagged as spam show
This is not math class, this is apples class
ChrisTheBest1992 4 months ago
bucky i love u more when u miss ur words :) :) xxxxxxxxxxxx
gadsfsd 4 months ago in playlist Java Programming Tutorials 5
Any int with 11 or more digits that is printed on the screen bugs java! Wtf?
umcarainteressante 4 months ago
@umcarainteressante
Integer Variables are limited in their way to represend a number. It goes from -2147483648 up to 2147483647
dominik5467 4 months ago
@TrollingAround because the Math methods are 'static' meaning they can be used without creating a Math object. That's why main is 'public void STATIC main(String[] args) {}' so the computer can run the main class without making an 'apples' object.
Lachy2901 4 months ago
if Math is a class, why dont you have to have to create a 'new' math object to use it?
ie:
myMath = new Math();
double fred=myMath.sqrt(9);
please dont use the phrase "its built in" as I dont know what that means - unless you mean "Math is a library that is included by default"
Thanks - great tut's :-)
TrollingAround 5 months ago
how can u dislike this?
yamitommie 5 months ago
math. squirt(lot);
turtlecat77 5 months ago
lol when usin math.pow put a rrealy high pow number it says infinity @_@
HardlyMinecraft 5 months ago
you can use math.round too
TheTimeForMe 5 months ago
How the hell can you teach everything we learned in 3 friggin school years in 25 Tutorials?!
And I understand it better than in school
ItzTheFury 5 months ago in playlist JAVA Tutorial (The New Boston) 2
System.out.println(Math.pow(Math.pow(2,0.3),1/0.3)); = 2 :-)
Jesteria78 5 months ago
really awesome tut,thnx
externalharddrivehq 5 months ago
This is not math class, this is apples class.
Genovit 5 months ago 5
Can you do more than 2 numbers in the max() and min() methods?
Wouter10123 6 months ago
I heard your blackberry 2:17 =]
xVerbati 6 months ago 4
@fand1995lord No, 3.3 * 3.3 = 10.89... You are no where near as smart as your computer.
Bollatic 6 months ago
Comment removed
Tbroman 6 months ago
Legends will be epic
C0dglitcher22 7 months ago
These tutorials are fantastic. They make me want to quit my boring job and learn Java full time. If only I could get paid for that.
PaniacThrilla 7 months ago
Comment removed
superdatamaskin 6 months ago
@PaniacThrilla
And you can! work with it a year or two and then you probably will be good enough to get a job where you can take java in use :-)
superdatamaskin 6 months ago
epic legend
KomukiZ 7 months ago
Or it's because you've created a Math class in the same package before.
rychu130 7 months ago
My math commands wont work all of a sudden! They were working fine, then i copied the info and put it onto a different class, and now the pow,abs,ect.. wont work at all! It says it isn't a known method, please help!!
chrisnbert 7 months ago
@chrisnbert
I have had the same problem. The solution is to not use default package but to create a new one instead and put all classes there.
rychu130 7 months ago
Majestic
Daim0th 7 months ago
Oh wait, it would just be Math.pow(x,1/n).
MisterM2402 7 months ago
Comment removed
12qwaszx996 7 months ago
I'm learning more math with bucky than I of what I did in my whole school year...
WiziLiCe 7 months ago 124
@WiziLiCe You really didn't know how to add, subtract, multiply and divide? You didn't know how to round numbers? Square root? Your maths teachers should be ashamed.
If square root is shown by "sqrt", and cube root by "cbrt", how do you get nth-root (4th root, 5th root, etc.)?
MisterM2402 7 months ago
@WiziLiCe lol are you taking algebra in your senior year?
Phillie103 6 months ago
@Phillie103
it's called exaggerating, by no means i'm trying to be harsh on this reply, just so y'all know. But still imo bucky is teaching us java in a better way.
Keep it up man.
WiziLiCe 6 months ago
@WiziLiCe Yeah... Sorry if you took it the wrong way... no hate meant against from that comment...
Phillie103 6 months ago
@WiziLiCe I know right
MCEvanLong 6 months ago
@WiziLiCe me too :D
MineCraftPowers 5 months ago
@WiziLiCe That's an insult to your own intelligence.
LoquaciousApe 4 months ago in playlist JAVA Tutorial (The New Boston)
@LoquaciousApe
I'm in middle school.
WiziLiCe 3 months ago
@WiziLiCe You do Java Programming and/or ActionScript? LUCKY!!!! I do stupid assignments...
daymond12345 2 months ago in playlist Java Programming Tutorials
math abs lol
skalla1000 8 months ago in playlist java 67
@skalla1000 with great Math.pow also come free Math.abs
NebulaOrbit 2 months ago in playlist Java Programming Tutorials
This has been flagged as spam show
nice! it's really worth to watch it for programmers! :))
Theendisnear24 8 months ago
This has been flagged as spam show
'bucky', you are the only one who can teach me programming
MANUDAREable 8 months ago
'bucky', you are the only one who can teach me programming
MANUDAREable 8 months ago 2
Salad.
HarrowedBeThyName 8 months ago in playlist Java Programming Tutorials
So im going to actually have to listen in math class now? :P
t89pepper 8 months ago
4 people havent had Math Class
Ninjason1337 8 months ago
lol "math class"
thejammedlocker 8 months ago in playlist Java Programming Tutorials
@livehotel1 yah end 1 peoples is not understand english
thejammedlocker 8 months ago in playlist Java Programming Tutorials
@thejammedlocker that would be you :D
simba90s 8 months ago
4 peoples does not understand Java.
livehotel1 8 months ago
I used this for my homework :D
Bearman123100 8 months ago 5
@tuberokz why to ask for function? you just have to make a new function/class that reads the input number, store it on a variable and then use an IF sentence to decide if it should be rounded by ceil or floor :)
TheSh4go2 8 months ago
@tuberokz why ask for functions? just create a new TUNA public function/class that reads the number and use an IF sentence to decide if it should be round with ceil or with floor and there you have it :)
TheSh4go2 8 months ago
Judging by the tuna class, I'd say you've been doing the last 12 tutorials on the same day.
You're a fucking champion, bro.
Gyohdon 9 months ago
Comment removed
hizzleyo 9 months ago
@tuberokz it's Math.round(number)
Good luck
Flow0Toe 9 months ago
Dude, you're 10000x better than my teacher, thanks for all your help!
TH3steven 9 months ago
MONSTTRRROOOOOOO!!!!!
gregthegreat162 9 months ago
4 People dont want to do Java anymore.
ServerBoost100 9 months ago
4 people dont like Math
kashenets 9 months ago
so cute when you're saying ffffirst!
benhxy 9 months ago
epic and legend :D
bohterham 9 months ago
epic and legend :D
bohterham 9 months ago
This has been flagged as spam show
System.out.println(Math.squirt(boy+girl));
=boy+girl+kids xD
2kGamerR 9 months ago
System.out.println(Math.sqrt(boy+girl));
=boy+girl+kids xD
2kGamerR 9 months ago
This has been flagged as spam show
sharathdozen 10 months ago
Failure = false
cACTIfARM 10 months ago
This has been flagged as spam show
@DeathStarLazor Are you sure he meant that? His original post is "sqrt of 9 is -3 AND 3..." which means sqrt(9) = +3 and -3, which is wrong. Am I mistaken here? If yes, I apologise to you and yodiboy of course.
Suturedd 10 months ago
This has been flagged as spam show
@DeathStarLazor I don't think he says that, except if my English are not helping me with this. He said that 'sqrt of 9 is -3 AND 3...' meaning that if we have the equation x = sqrt(9) then the results are x=+-3, which is wrong. If I didn't get right what he said then I apologize. If we have x^2 = 9 then x=+-3, but it's not the same with sqrt.
Suturedd 10 months ago
@yodiboy
You are wrong. The square of a number is always >=0
Suturedd 10 months ago
@Suturedd You are completely right. The square of a number is always positive or 0. But he's saying -3 times -3 is 9.
DeathStarLazor 10 months ago
@Suturedd Lol, >=0 looks like a smiley :P
GameMaster337 9 months ago
where can i download a package? Error Package does not exist. :(
capslock020 10 months ago
@capslock020 get the full version of the eclipse, not the 80mb version the full version 200 EE was the name as i remember
2kGamerR 9 months ago
This is where I started to take notes...
SpotxSpot 10 months ago
sqrt of 9 is -3 AND 3...
yodiboy 10 months ago
u rock man
0uckU 10 months ago
we all love the sqrt's
TheTam999 10 months ago
You make JAVA look so easy!
RatmanXX 11 months ago
Bucky I love your tutorials and I have one suggestion, you always have a print line in them, how come you don't make a method that would just do that for you so you dont have to keep putting System.out..println(); ? just wondering.
MrDadcard 11 months ago
Comment removed
Budishaa 10 months ago
This has been flagged as spam show
@MrDadcard
You make a new method in your class like this:
public static void println(String what){
System.out.println(what);
}
and then later on, in any method, you use it like this:
println(What you want to print);
Budishaa 10 months ago
This has been flagged as spam show
@MrDadcard
You make a new method in your class like this:
public static void println(String what){
System.out.println(what);
}
and then later on, in any method, you use it like this:
println(What you want to print);
Budishaa 10 months ago
This has been flagged as spam show
@MrDadcard
You make a new method in your class like this:
public static void println(String what){
System.out.println(what);
}
And then later, in any method, you use it like this:
println(What you want to print);
Budishaa 10 months ago
Math.cbrt() for cubed rutes
jreynol100 11 months ago
im learning this and im only 11
supermonkeybot3000 1 year ago
@supermonkeybot3000
me too lol
TheScars75 11 months ago
any help? I try to make a text adventure java game but theres only one problem, I cant use the scanner with a string like this:
if (bucky == "Open door") (bucky is the scanner) pls help.
alex1000209 1 year ago
@alex1000209 Try doing this:
if(bucky.equalsIgnoreCase ("open door"))
That should work. You can also remove the "ignore case" those words allow the user to type in open door like so:
OPEN door
OpEn DoOr
etc
~Joe
AlleDingeAndern 1 year ago
My favorite method in Math Class was cheating. :D nice videos 11/10
OfficialMLOA 1 year ago
Yes he said "functions" instead of methods! This reminds me of my RBX.lua days.
blazingkin 1 year ago
lol i made a program calculating every prime number from 1 to 1.000.000.000 and it takes ages
(currently at 27.091)
joaoris 1 year ago
@joaoris could you send me the code for the program :P or if anyone has a more complicated program, please send it aswell :D
EckoFresh92 11 months ago
@joaoris my VB.net version got to 1,000,000 within 8 minutes
are you sure you've written it as efficiently as possible? PM me for the "short cut" way
Ch33tHunt3rs 11 months ago
Bucky ftw =3
Drizien 1 year ago
wow im only at 25th tut?! huh this is gonna take a while to become a pro!
cpgamer368 1 year ago
This has been flagged as spam show
@cpgamer368 Not to mention you have not gotten to intermidiate! tuts!
jakeywakey27 1 year ago
This has been flagged as spam show
online Latino women dating site here rockmycity.info
vishakarethiva 1 year ago
I tried (Math.pow(5,999));
I got "Infinity"
:3
phobos001 1 year ago
@phobos001
Hahahahahahahahaha!
ben1996123 1 year ago
I hope you make a ton off the advertising, because you are a much better teacher than my Professors were at college. Good work.
isthattrue212 1 year ago
A good tip is to doing the exact same thing that bucky is doing at the same time on your own computer, it gets less tedious if u are going to watch them all for an exam or something :) learn by doing ftw
nivvola 1 year ago
25 done =)
lakers34kb 1 year ago 2
:D :D :D :D :D
jag9998 1 year ago
squirt.
TheXRealXBrapp 1 year ago
This has been flagged as spam show
lol Bucky got a text 2:15
lodman97 1 year ago
lol, Bucky git a text 2:15
lodman97 1 year ago
So how would I go about using other radicals beside the square root? Like the cube root, for example.
dreadwing93 1 year ago
@dreadwing93 You can use the power function to create radicals (square root, cube root, etc.). A number raised to the 0.5 power is the same as the square root function. Thus, if you wanted to take the cube root of a number it would simply be that number raised to the power of one-third.
Etalian5tallion 1 year ago
respect !!!!!
makesik 1 year ago
i would love to know the legitimate reason to downplay Bucky? If it took you 25 video to find out that his method doesn't work for you, your a lost cause.
XImprove 1 year ago
the max and min things i could make myself...
joaoris 1 year ago
please help me out with the calculations lessons.
my exam is on tomorrow.
talkybooky 1 year ago
i still don't understand wat pow does
andrew142009 1 year ago
@andrew142009
5*5*5=125
Islamproof 1 year ago
@andrew142009 it calculates the power of a number... x to the power of y is pow(x, y) so 3 to the power of 4 (3x3x3x3) is pow(3, 4) which results in 81.
SoftwareTesterGuy 1 year ago
@BravoScapeBcooperz yes you can do all sort of things in java including 2d and 3d games.
unrewritable 1 year ago
epic
noTmiZ 1 year ago 38
Legend
Qball797 1 year ago 49
it helps me better
lstrdlczz 1 year ago
great videos, easy to learn, but damn if only I could remember half this shit lol.
I'm gonna have to go over all these videos a few times I can already see, btw I am taking notes. Great work bucky
Crystalballer274 1 year ago
I love math class!
megaelliott 1 year ago
go go bucky :P
mazdyabosoraya 1 year ago
min,max methods are pretty usefull when u wan't your variables to be with in a certain values. example: variable = math.max(0, math.min(10, variable)
ypthemc 1 year ago
bucky I m an Computer engineer n i find ur lectures v useful n informative
keep up da good work
u rox main \m/
farhan from Pakistan
mrfarhankhanciit 1 year ago
you made youtube better than universities. Bucky is the Man.
Dalwanaage 1 year ago
can you do more than two numbers when doing th emax and min
4thKyuubi 1 year ago
@4thKyuubi
Well you can this thing if you want
max(1,max(2,max(3,4)))
You get the picture
ZeroBlitz36 1 year ago
System.out.println("Bucky = best teacher ever");
rockyscarlet 1 year ago