Java Programming Tutorial – 27 – Introduction to Arrays

///Java Programming Tutorial – 27 – Introduction to Arrays

Java Programming Tutorial – 27 – Introduction to Arrays

FavoriteLoadingAdd to favorites

Facebook –
GitHub –
Google+ –
LinkedIn –
reddit –
Support –
thenewboston –
Twitter –

source

Java468x60
By |2019-10-22T23:25:57+00:00October 22nd, 2019|Java Video Tutorials|43 Comments

43 Comments

  1. Huzaifa Qayyum October 22, 2019 at 11:26 pm - Reply

    for new students, array declaration is changed to this:
    int[] bucky = new int[10];

  2. L p October 22, 2019 at 11:26 pm - Reply

    Thanks for this tutorial! This is so much more helpful than my class

  3. Otaku 58 October 22, 2019 at 11:26 pm - Reply

    Thank you so much I'm currently trying to understand this for a programming assignment and this 7 min video just explained the whole chapter!

  4. מנדי סגל October 22, 2019 at 11:26 pm - Reply

    Thanks so much for the video … you explain wonderfully ..

  5. Lady Mendoza October 22, 2019 at 11:26 pm - Reply

    Thank you for the toturial. May i know what type of compiler are you using?

  6. Benjamin Hascall October 22, 2019 at 11:26 pm - Reply

    how do you use it with scanner?

  7. BoscoLord October 22, 2019 at 11:26 pm - Reply

    YES I LIKE THIS

  8. subarctica October 22, 2019 at 11:26 pm - Reply

    what if i wanted to print the entire array with one println command is that possible? [0,1,2]; doesnt work. nither does [0+1+2]; nor does [0],[1],[2]; anf finally [0]+[1]+[2]; didnt work.
    also. what if i wanted to assign the indexes of the numbers a name. for example if im making a stats array for an rpg. like health mana str and wanted to print them out like health=25, mana =100 str = 50. i'm still very new and learning and trying to come up with my own projects to test my comprehension of these ideas since codecademy doesn't really give many practice exercises once you're introduced to a concept.

  9. Shaibal Ahmed October 22, 2019 at 11:26 pm - Reply

    LMAO
    "let's tightened that up a bit , that's what she said"
    Bucky you seize to amaze me!

  10. Nutan Nimkar October 22, 2019 at 11:26 pm - Reply

    Aug 2019, anyone?!

  11. Malia Fatongiatau October 22, 2019 at 11:26 pm - Reply

    😀

  12. Mona moud October 22, 2019 at 11:26 pm - Reply

    "Thats what she said" LOL marry me

  13. Rudra October 22, 2019 at 11:26 pm - Reply

    Hi, I just want to know that if I want to create a list which contains hundreds of number then is there any short method then just type in all numbers. and yeah I mean that numbers are in sequence.

  14. pdxbound81 October 22, 2019 at 11:26 pm - Reply

    What if you wanted to return 2 values in an array?

  15. JINGLUN ZHOU October 22, 2019 at 11:26 pm - Reply

    How to change an element in the array when I create an array using int Bucky[]={1,2,3}

  16. JINGLUN ZHOU October 22, 2019 at 11:26 pm - Reply

    I am 10 years late to watch this video

  17. Aman Gill October 22, 2019 at 11:26 pm - Reply

    package bcit.ca.comp1451.lab5b;

    import java.util.ArrayList;

    import java.util.Iterator;

    public class Transportation {

    private ArrayList<Car> cars;

    private ArrayList<Boat> boats;

    private ArrayList<Airplane> airplanes;

    public Transportation(){

    cars = new ArrayList<Car>();

    boats = new ArrayList<Boat>();

    airplanes = new ArrayList<Airplane>();

    }

    public void loadLibrary(Car theCar, Boat theBoat, Airplane theAirplane) {

    if(theCar != null) {

    cars.add(theCar);

    }

    if(theBoat != null) {

    boats.add(theBoat);

    }

    if(theAirplane != null) {

    airplanes.add(theAirplane);

    }

    }

    public void displayAllDetails() {

    System.out.println("Car Details");

    Iterator<Car> c = cars.iterator();

    while (c.hasNext()) {

    c.next().displayDetails();

    }

    System.out.println("——————————-");

    System.out.println("Boat Details");

    Iterator<Boat> b = boats.iterator();

    while (b.hasNext()) {

    b.next().displayDetails();

    }

    System.out.println("——————————-");

    System.out.println("Airplane Details");

    Iterator<Airplane> a = airplanes.iterator();

    while (a.hasNext()) {

    a.next().displayDetails();

    }

    }

    public void displayAirplaneDetail() {

    System.out.println("Airplane Details");

    Iterator<Airplane> a = airplanes.iterator();

    while (a.hasNext()) {

    a.next().displayDetails();

    }

    }

    public static void main(String abc[]) {

    Car theCar = new Car("BMW", "B-20", 2018, 255);

    Boat theBoat = new Boat("Gulf Craft", "G-19", 2015, true);

    Airplane theAirplane = new Airplane("Spice Jet", "SJ-5", 2000, 5500.55);

    Transportation transportation = new Transportation();

    transportation.loadLibrary(theCar, theBoat, theAirplane);

    transportation.displayAirplaneDetail();

    System.out.println();

    System.out.println();

    transportation.displayAllDetails();

    }

    }

    its okay

  18. Johan Hs October 22, 2019 at 11:26 pm - Reply

    Sir. I was watching this 7 min video while half asleep. I finally understand arrays. I did not get that from a facking 25 min lecture and 300 tries from my previous tutor. Thank you!

  19. Amish brotherhood October 22, 2019 at 11:26 pm - Reply

    This dude is legit a legend

  20. GAME HOOD October 22, 2019 at 11:26 pm - Reply

    thanks very simple and easy to follow

  21. Bini Alemayehu October 22, 2019 at 11:26 pm - Reply

    Is Bucky still alive in 2019 ?
    Last video he uploaded was one two years ago

  22. Bini Alemayehu October 22, 2019 at 11:26 pm - Reply

    Is Bucky still alive in _2019_?
    Last video he uploaded was one two years ago

  23. Uchenna Agu October 22, 2019 at 11:26 pm - Reply

    "that's what she said" made me subscribe

  24. Kareem Kattan October 22, 2019 at 11:26 pm - Reply

    this man made a thats what she said joke 9 years ago.

  25. JakeNBake October 22, 2019 at 11:26 pm - Reply

    “ That’s what she said “ liked

  26. Kojiro 13 October 22, 2019 at 11:26 pm - Reply

    Lucky to find your channel. 😂

  27. Lucia Buggiano October 22, 2019 at 11:26 pm - Reply

    Super helpful, thank you!

  28. Gluckali October 22, 2019 at 11:26 pm - Reply

    thank u man! better than my teacher!

  29. Socialism October 22, 2019 at 11:26 pm - Reply

    this was actually so helpful, thanks man 🙂

  30. Ryan Goo October 22, 2019 at 11:26 pm - Reply

    am i the only one that watches him these days…

  31. fadikun AJ October 22, 2019 at 11:26 pm - Reply

    Bahahahahaha laughed so hard after that thats what she said joke was so unexpected

  32. Its- Showtime October 22, 2019 at 11:26 pm - Reply

    Amazing. I understand what an array is now. Great explanation/example

  33. weaver October 22, 2019 at 11:26 pm - Reply

    i love these JOKES MAN KEEP UP THE GOOD FUCKING WORK

  34. Riffi Rockzzz October 22, 2019 at 11:26 pm - Reply

    ur video is shit

  35. Roznen Soberano October 22, 2019 at 11:26 pm - Reply

    Excuse me, sir… but what IDE do you use? Thanks :>

  36. joseph okonofua October 22, 2019 at 11:26 pm - Reply

    Let's take this up a lil bit
    ** That's what she said **

  37. ANDI October 22, 2019 at 11:26 pm - Reply

    🙂

  38. Star Boy October 22, 2019 at 11:26 pm - Reply

    shit, this is way easier to learn java than a hella long lecture

  39. Anna Farris October 22, 2019 at 11:26 pm - Reply

    What is this useful for? Like what type of program would you use this in

  40. Árni October 22, 2019 at 11:26 pm - Reply

    THAT'S WHAT SHE SAID

  41. Violence Is Fun October 22, 2019 at 11:26 pm - Reply

    Dude I only just realised, your the same guy who's videos I watch to learn biology and the same guy who's videos I watch to learn python. How can one guy be so smart? You amaze me dude

  42. Rehana - October 22, 2019 at 11:26 pm - Reply

    how do i print out all items of an array using the SOP?

  43. Yasin Onur Gürbüz October 22, 2019 at 11:26 pm - Reply

    Thank you so much

Leave A Comment

*