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

Link to this comment:

Share to:

All Comments (863)

Sign In or Sign Up now to post a comment!
  • System.out.print("enter a numer: ");

    int number = console.readInt();

    if (number > 9000)

    { System.out.print("it's over 9000!!!!! ");

    }

    Get this to work and it's awesome

    Try this.

  • Great Video man!

  • I love you! (No homo)

  • Instead of adding all of those

    system.out.print(variablehere)­;

    system.out.print(othervariable­here);

    You could just do

    system.out.print(variablehere + othervariablehere);

  • apples and tuna

  • i have some a so how can i print the word tuna if i have a variable called tuna?

  • @gyngrbred This was just an example. Normaly, you probably want to have like complicated numbers as variables. (when i say complicated, i mean that it makes it look pro.)

  • int

    double

    float

    boolean

    String

    ...???

  • @gustavboll1

    int: integer - used to represent "whole numbers" only.

    double: double-precision floating point - used to represent any real number.

    float: single-precision floating point - used to represent any real number.

    boolean: used to represent basic truth value (true or false)

    String: used to represent literal statements such as "movies" in this video.

    There are many other primitive types as well. Google "variable types in Java".

  • @TheBlackDeath3 i know but do it exists more then

    byte,short,int,long

    float,double

    boolean

    String

  • You are awesome. Thanks to you i finally get the purpose of variables (hope i spelled that right).

  • Thanks from Ukraine!

  • I have watched 5 of your Video's. They are extremely good. I have looked at various java tutorials,

    and yours are the best. I was struggling with java until I watched your video's.

    Keep up the good work.

    Thanks

    Bob from England. 

  • Comment removed

  • 2+2 =fish

  • Why do you always have to include food?

  • Thanks bro!! ;-]

  • What abbot the other variables? What are they called? How are they used? That pissed me off how you didn't even say what they were

  • @UltraDrago2000 What other variables? There are no other ones.

  • lol you say back in seventh grade and im in seventh grade :P i like your tutorials their very detailed. +1 subscriber :)

  • How come when i run it it only says tuna

  • @MrDestracto did you put the tuna in quotes? like so

    system.out.print("tuna");

    take off quotes.

  • I know how you store a number variable in an abc variable but how do you store an abc variable inside a number variable? With that knowledge I could create a lot more things.

  • he forgot to mention the ; symbol.. because you are on a compiler you can't finish your line of code (or sentence) with a period. the compiler will be confused and mistake it for a decimal. therefore to end your line you use a ; symbol. thats all.

    good tut

  • in school java is so boring but with your tutorials its so much fun!

  • why not use

    JOptionPane.showMessageDialog(­"My favorite number is: " + tuna);

  • JW but cant you do System.out.print("I want " + tuna + "movies");

  • Tuna is the best variable name ever.

  • Comment removed

  • you just helped me with my homework. you're better teacher than my college professor. THANKS

  • whole numbers cannot be negative they are the natural numbers {1,2,3.....} plus 0

    and they are part of integers that contain all positive and negative numbers.

  • @zaidalyafey negative numbers are integers though...

  • @HitaroX

    of caurse they are ,,, but whole numbers are just positive integers

  • Yea, you better set aside at-least 2 weeks to understand constructors.An another to know how classes work. Up till then, your only learning syntax.

  • I want tuna movies

  • I am in 7 grade

  • It is hard to learn java if you dont speak england so i will go to library and i will be book worm...

  • im learning how to code runescape bots... thank you xD

  • Thanks, I didn't know mutch about java until u taught me ( :

  • lol knowing javascript and c++ and vb i predicted how the syntax goes for the for statement the while statements and booleans

  • thi sis a stin

  • so simply saying;

    double = real number element of R; (examples : Pi, E, ... )

    int = integer number element of Z; (3,5,4)

    Attention:

    if you do 5/2 you get 2; residual divided

    if you do 5/2.0 you get 2.5; reeel divided

  • public class Variable { public static void main (String args[]){ double OVERNINETHOUSAND; OVERNINETHOUSAND = 9000.001; System.out.print("I NEED "); System.out.print(OVERNINETHOUS­AND); System.out.println(" SPARTA KICKS");

    }

    }

  • @dragonthewatcher System.out.println("I need "+overNineThousand+" sparta kicks");

    the plus is a conjoining operator that allows any data type to be presented in the format of a string.

  • public class Variable { public static void main (String args[]){ double OVERNINETHOUSAND; OVERNINETHOUSAND = 9000.001; System.out.print(OVERNINETHOUS­AND);

    }

    }

  • If "double" is what you will put before a number with decimals, what do you put in, stead of "double" if you want a number without decimals, and/or if you want a word instead of a number?

  • @Cycyryable I just found out "int" is for whole numbers. Is it "int" for letters as well?

  • Comment removed

  • Comment removed

  • What is it with you and apples!!!

  • @ThexKezza and bannans

  • @ThexKezza and bannans

  • @ThexKezza and bannans

  • @ThexKezza and bannans

  • Thank You Brother :)

  • I wish they also taught this at highschool..... but Bucky is still great lol >.<

  • "Don't believe me?", but we do believe you why do you have to proove shit :P

  • damn, this is c++, but with other names xD (btw i can program in c++) yeey

  • i learned about variables in 6th grade ^o)

  • dam i got it wrong but eclipse told me what was wrong and boom its working this is what i missed=;

  • jaba

  • 3:56

    30 minutes of learning for a simple program that says 5.28

    =\

  • What font do you use?

  • oi wait a sec I learned about variables in 3rd grade >:O

  • "math class back in 7th grade or what ever..."

    I'm ten and I'm still in 5th grade (Elementary) O.O lol

  • In eclipse write syso and press space + enter, thumbs up, so everyone can see!

  • He's a good teacher

  • Wouldn't it be easier to understand if the "println" statement meant end line instead of print line?

  • @Nanoxenium It seems to be a short form for print a line and end it.

  • 1:41 lol

  • I Know What's A Variable I Learned It When I Done Javascript In HTML

  • so a double is basically a float?

  • @OCoptimusconvoy more or less, but floats store numbers a tad more efficiently

  • @CheesitWeesit so can we still use floats in java?

  • Thumbs up if your going to beat Minecraft with your java game!

  • lol learning variables in 7th grade right now! in pre-algebra!

  • Thumbs up to boost my self esteem! OMG I hate those...

  • You know you're a computer nerd when your favorite number is 5.28 lol

  • @gettlo5 or you know that pi is 3,141592653589 ;)

  • @gettlo5 favorite number for physic nerd would be 137 :P

  • @gettlo5 mine is 3 :3 i have no idea why :3

  • @gettlo5 why?

  • @gettlo5 I don't get it, please explain

  • @gettlo5 or a math nerd when your favorite number is 6.28 lol

  • You messed up the names for the tutorials. 4 and 5 should switch places

  • you should make a double and call it rainbow

  • I used to know java, then I took an arrow to the knee

  • @ziggybiggyboom I used to know java, then I forgot java, now im learning java

  • I guess you really like apples =D

  • VB is so much simpler :/

  • You, my good sir, have a new subscriber!

  • Thumbs up if you going to make a simple game with java!

  • @therightpremiums screw simple :P

  • @therightpremiums No. I'm going to make a MINECRAFT like game.

  • @Theminecraftplayerdd Okeay...

  • @Theminecraftplayerdd Then why did you say no? Your still creating a game regardless of what it's about.

  • @therightpremiums like minecraft ?? xD

  • @pietteke1 So you think minecraft is a simple game?

  • @therightpremiums Isn't that the point of java? :D

  • ive been learning c++ for a while now. coming back to java everything is easy now! i think ima stick with java.

  • @kidharris55 oh no! that doesn't make me feel good lol. I first learned python (which is easy and makes sense to me), now learning Java (second time through these tuts, dont like how I have to declare all the variables where in python it automatically did it but I assume Java is more complex because it is more powerful, no?), next I was going to learn C++... oh well, guess I'm going in the right order then :p

  • @SpeakerFrequer lol python has a different syntax to c++ and Java :P That's why @kidharris55 found Java a little bit easier to learn.

  • Bucky for the President !!! \0/

  • "5.28 my favorite number" LOLing for and 5.28 mins so fari

  • haha i love how you say, don't believe me? nah dude i have no idea what ur saying but i still dont believe you :p

  • sorry about my last coment :(

  • Hello Bucky, I'm getting the hang of it. Would you mind posting simple "assignments" as a follow-up? Of course, include an answer somewhere....

  • Your favourite number is 20

  • @ronami101 Mine is 2 it gose into all even numbers and even numbers are my favorite type of videos

  • Nice tutorial!

  • dude... IM 11 YEARS OLD AND IM IN FITH GRADE!!! no joke! im getting a head start in java!!!!! Thumbs up if you think programming is easy!

  • @ihavetoshutthewindow Dude, this is the second thing you are making, it will get harder of course.

  • @ihavetoshutthewindow You're an idiot, it gets really hard and complex later. Stop being proud of your age, you're not special or unique.

  • @ihavetoshutthewindow wow u bad

  • ...

  • Is your birthday the 28th of May?

  • thumbs up if your going to make a mod with this

  • thumbs up if your here for minecraft :D

  • I hear you talk more then i hear anyone else xD

  • You are more helpful than my lecturer, thank you

  • I WANT TUNA MOVIES

  • Bucky,... you're HOT!

  • bucky 

  • haha, i'm in 8th grade math and i'm working with variables :x

  • @JakeFerrante

    lol im in 5th grade and is doing the same thing XD

  • dude i luv alot right now. plz keep making P.S iaint gay

  • 1:43 "Bluh bluh bluh" LMFAO 

  • i have copied everything there but when i o to run it it said selection does not contain a main type please help :)

  • Thank you Bucky! Someone give this guy a Nobel prize

  • I can't watch like 50+ tuts in one day... I love you Bucky. You're amazing.

  • @TheModernKillcam I'm not learning this for minecraft, but I will use it there :P and what I am learning this for is a game to make and run on minecraft's engine.... minecraft FTW

  • First I must learn the basics, then advanced, and finally the game development tutorials so I can make my own Minecraft. And so it begins.

  • My favourite number is 5.28 as well xD

  • Minecraft, and Android.  yes.

  • @105JellE , PrintLn tells the computer "after I write this, whatever else I write goes on a new line.

  • @DKenobi1

    yes that's right :)

  • What is the difference between print and println?

  • @105JellE he says it in the video cmon pay attention if you're actually willing to learn this.

  • @105JellE

    the difference is that print makes the words in the same line but println makes everything you print next will be in a new line

  • it says:

    "The value of the local variable tuna is not used"

    Why?

  • Thumbs up if your going to make an app with java

  • @135792468Baseball Aha, I am going to "attempt to make" an app with Java.

  • How do you add spaces between the printed words?

  • click4brichcom

  • Are Java series complete?

  • 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

    there is ur mistake

    final double g = 16.0;

    double t = 35.5;

    then runned i get:

    run:

    0.0

    meters per second squared

  • @hobosmurf I strongly recommend you not to do any operation when your printing something, it's way better to do it before, saving the result and then display it on the screen

  • @renzozs still doesnt work for some reason but thanks a lot, i didn't know that

  • @hobosmurf hmm weird try this code:

    final double g = 16.0;

    double t = 35.5;

    double res = ((g * t * t) / 2);

    System.out.println(res + " meters per second squared");

  • Comment removed

  • lol mod not mpb

  • im mqking a minecraft mpd

  • @a1missle You have fun with that

  • @YOUxFUCKxCATS thx i will

  • Anyone else learning this to create an RSPS?

  • How can I compute the are of a triangle

  • @ItsMeJayelle 1/2 base times height

  • You’re an amazing teacher!!!

    You’re the reason I’m passing my Computer Science class!

    

  • this is better than human teacher

  • @shreymantu he IS human

  • @CloudDecim i meant human teacher in REAL time