Added: 2 years ago
From: thenewboston
Views: 113,107
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (222)

Sign In or Sign Up now to post a comment!
  • are there any other roots?

  • 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!")

    }

  • Lol, Math Squirt

  • why does (Math.pow(8, 1/3)) result in 1.0?

  • 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"); }

    }

  • 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...

  • @dragonthewatcher can anyone guess what that would say? 1337 101

  • Comment removed

  • 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 my computer ate my homework..

  • thumbs up if you are <17 and learning java 

  • @XxxTheProGamerzxxX thumbs up if you can buy alcohol

  • @paintbaiijnk3 thumbs up if you dont give a shit :D drunkard :P

  • @dragonthewatcher -pats your head- calm down, no need to be so jumpy

  • Math.PI() is also important

  • tutorial # 25, and I'm here under my own free will.... aww crap, im a nerd

  • @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

  • Ahhh, fun days:

    System.out.println(Math.max((M­ath.PI),Math.pow(Math.ceil(380­.9843385853), Math.floor(6.483955232958))));

  • @L3gendArch3r 3.058791354808281E15

  • I CAN FINALLY USE MATH FOR SOMETHING COOL!!!!

  • do I need to watch these if I want to develop some simple games?

  • @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.

  • 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 no, you can put the brackets before or after it doesnt matter

  • @omg123596

    no, it's totally the same.

  • MY afro is burning me

  • how would you limit the decimals being displayed? like for example you cant have like 10800.000001 dollars.

  • @XrayXD22 double roundTwoDecimals(double d) {  DecimalFormat twoDForm = new DecimalFormat("#.##"); return Double.valueOf(twoDForm.format­(d));

    }

  • @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 :)

  • Comment removed

  • i've got abs in my car =0

  • i dont remember learning the pow method. can someone tell me which past tutorial bucky shows us it please? thanks!

  • nvm. didnt know he meant Math.pow :p

  • bucky is great

  • sqrt eh :]

  • cool beans, bt you should rename it to math tricks so more ppl would watch it.

  • Ugh math class -.-, this one i like.

  • "All the methods of the math clath and the firth one..."

    Don'th worry bucky we underthtand you.

    xDD

  • Comment removed

  • Bucky, you make math applicable and learn-able. Please quit whatever you do and come teach my Calculus class.

  • bucky i love u more when u miss ur words :) :) xxxxxxxxxxxx

  • Any int with 11 or more digits that is printed on the screen bugs java! Wtf?

  • @umcarainteressante

    Integer Variables are limited in their way to represend a number. It goes from -2147483648 up to 2147483647

  • @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.

  • 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 :-)

  • how can u dislike this?

  • math. squirt(lot);

  • lol when usin math.pow put a rrealy high pow number it says infinity @_@

  • you can use math.round too

  • 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

  • System.out.println(Math.pow(Ma­th.pow(2,0.3),1/0.3)); = 2 :-)

  • really awesome tut,thnx

  • This is not math class, this is apples class.

  • Can you do more than 2 numbers in the max() and min() methods?

  • I heard your blackberry 2:17 =]

  • @fand1995lord No, 3.3 * 3.3 = 10.89... You are no where near as smart as your computer.

  • Comment removed

  • Legends will be epic

  • 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.

  • Comment removed

  • @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 :-)

  • epic legend

  • Or it's because you've created a Math class in the same package before.

  • 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

    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.

  • Majestic

  • Oh wait, it would just be Math.pow(x,1/n).

  • Comment removed

  • I'm learning more math with bucky than I of what I did in my whole school year...

  • @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.)?

  • @WiziLiCe lol are you taking algebra in your senior year?

  • @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 Yeah... Sorry if you took it the wrong way... no hate meant against from that comment...

  • @WiziLiCe I know right

  • @WiziLiCe me too :D

  • @WiziLiCe That's an insult to your own intelligence.

  • @LoquaciousApe

    I'm in middle school.

  • @WiziLiCe You do Java Programming and/or ActionScript? LUCKY!!!! I do stupid assignments...

  • math abs lol

  • @skalla1000 with great Math.pow also come free Math.abs

  • 'bucky', you are the only one who can teach me programming

  • Salad.

  • So im going to actually have to listen in math class now? :P

  • 4 people havent had Math Class

  • lol "math class"

  • @livehotel1 yah end 1 peoples is not understand english

  • @thejammedlocker that would be you :D

  • 4 peoples does not understand Java.

  • I used this for my homework :D

  • @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 :)

  • 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.

  • Comment removed

  • @tuberokz it's Math.round(number)

    Good luck

  • Dude, you're 10000x better than my teacher, thanks for all your help!

  • MONSTTRRROOOOOOO!!!!!

  • 4 People dont want to do Java anymore.

  • 4 people dont like Math

  • so cute when you're saying ffffirst!

  • epic and legend :D

  • epic and legend :D

  • System.out.println(Math.sqrt(b­oy+girl));

    =boy+girl+kids xD

  • Failure = false

  • @yodiboy

    You are wrong. The square of a number is always >=0

  • @Suturedd You are completely right. The square of a number is always positive or 0. But he's saying -3 times -3 is 9.

  • @Suturedd Lol, >=0 looks like a smiley :P

  • where can i download a package? Error Package does not exist. :(

  • @capslock020 get the full version of the eclipse, not the 80mb version the full version 200 EE was the name as i remember

  • This is where I started to take notes...

  • sqrt of 9 is -3 AND 3...

  • u rock man

  • we all love the sqrt's

  • You make JAVA look so easy!

  • 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.

  • Comment removed

  • Math.cbrt() for cubed rutes

    

  • im learning this and im only 11

  • @supermonkeybot3000

    me too lol

  • 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 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

  • My favorite method in Math Class was cheating. :D nice videos 11/10

  • Yes he said "functions" instead of methods! This reminds me of my RBX.lua days.

  • 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 could you send me the code for the program :P or if anyone has a more complicated program, please send it aswell :D

  • @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

  • Bucky ftw =3

  • wow im only at 25th tut?! huh this is gonna take a while to become a pro!

  • I tried (Math.pow(5,999));

    I got "Infinity"

    :3

  • @phobos001

    Hahahahahahahahaha!

  • I hope you make a ton off the advertising, because you are a much better teacher than my Professors were at college. Good work.

  • 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

  • 25 done =)

  • :D :D :D :D :D

  • squirt.

  • lol, Bucky git a text 2:15

  • So how would I go about using other radicals beside the square root? Like the cube root, for example.

  • @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.

  • respect !!!!!

    

  • 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.

  • the max and min things i could make myself...

  • please help me out with the calculations lessons.

    my exam is on tomorrow.

  • i still don't understand wat pow does

  • @andrew142009

    5*5*5=125

  • @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.

  • @BravoScapeBcooperz yes you can do all sort of things in java including 2d and 3d games.

  • epic

  • Legend

  • it helps me better

  • 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

  • I love math class!

  • go go bucky :P

  • 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)

  • 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

  • you made youtube better than universities. Bucky is the Man.

  • can you do more than two numbers when doing th emax and min

  • @4thKyuubi

    Well you can this thing if you want

    max(1,max(2,max(3,4)))

    You get the picture

  • System.out.println("Bucky = best teacher ever");