Java Programming Tutorial – 28 – Creating an Array Table

///Java Programming Tutorial – 28 – Creating an Array Table

Java Programming Tutorial – 28 – Creating an Array Table

FavoriteLoadingAdd to favorites

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

source

Java468x60
By |2019-12-02T00:15:55+00:00December 2nd, 2019|Java Video Tutorials|38 Comments

38 Comments

  1. esr it December 2, 2019 at 12:16 am - Reply

    why no sound?

  2. Jimmy Sun December 2, 2019 at 12:16 am - Reply

    I am using intelliJ IDEA. It's better for intelliJ user to add double "/t" in "System.out.println(counter + "/t/t" + bucky[counter]) " to make it look perfect 🙂

  3. Brian Dacallos December 2, 2019 at 12:16 am - Reply

    2019 ?

  4. KRM December 2, 2019 at 12:16 am - Reply

    The number of “earnin” ads are killing me.

  5. Dabigboom December 2, 2019 at 12:16 am - Reply

    What if you want to put a name in to the array, how would i do that??

  6. Lang Ming December 2, 2019 at 12:16 am - Reply

    lol

  7. Kaza Yunu December 2, 2019 at 12:16 am - Reply

    thank you man; i just started following to your channel and i can say easily your tutorials are so clear and understandable and so cool.. thanks for all; man !! and thank you so much in advance for next ones…

  8. Goodester December 2, 2019 at 12:16 am - Reply

    I'm pretty sure that length is array's attribute instead of a method, but I could be wrong.

  9. Imen Bou December 2, 2019 at 12:16 am - Reply

    thank you soooooooooooooo muuuch

  10. Ronnie Moraes December 2, 2019 at 12:16 am - Reply

    Very, very, very easy to understand after your video mate, you really understand that who comes for this kind of video, they know nothing, so you teaches from this principle. I will watch all your videos about java and maybe one day Angular as well. Thanks one more time for your time spent teaching us.

  11. Mathias Limbourg December 2, 2019 at 12:16 am - Reply

    Amazing

  12. Five Star Gaming December 2, 2019 at 12:16 am - Reply

    Making an Excel Budget Spreadsheet!!!hahaha!

  13. ebubekir özkan December 2, 2019 at 12:16 am - Reply

    how can i enter nums inside the "buck[]" by scanner? and then print all as that table?
    pls.

  14. Saulius Ogenskas December 2, 2019 at 12:16 am - Reply

    what about fixing this with:
    for(int counter=1;counter<saulius.length;counter++){

    System.out.println(counter+"t"+saulius[counter-1]);
    This gives you better looking output

  15. DudeManGuy December 2, 2019 at 12:16 am - Reply

    after these turtorials i feel like punching anyone in the face that says coding isnt hard

  16. kndmiami1 December 2, 2019 at 12:16 am - Reply

    Thank you!!!!!! 🙏🏼

  17. jparsons1974 December 2, 2019 at 12:16 am - Reply

    never got Array table to work has the code changed since 2009?

  18. Abhishek Hamal December 2, 2019 at 12:16 am - Reply

    Hey Bucky, a quick feedback to you. Instead of typing (System.out.println) all the way, you could just write (sysout) and ctrl+space – saves a lot of time, since I see you are using the Eclipse IDE. But DANG! the videos was made in 2009, maybe this shortcut wasn't there back then. :'D . And hey, thanks for making these awesome and concise videos.

  19. Div Gupta December 2, 2019 at 12:16 am - Reply

    hey i like the way he used bucky[counter]

  20. ricebow December 2, 2019 at 12:16 am - Reply

    can someone please help explain this –> "bucky[counter]".

    I'm having a hard-time understanding how this works. Why is counter within the bracket. I know Bucky explained it but i just cant wrap my head around it. thanks in advance!

  21. Shay Axelrod December 2, 2019 at 12:16 am - Reply

    for that for in line 6, you could have used:

    for(int num : bucky) {
    system.out.println(num)
    }

    the output will be:
    32
    12
    18
    54
    2
    Would have been nice to see that in the video

  22. GrowingWithBird December 2, 2019 at 12:16 am - Reply

    I’m confused on the value of counter such as becky[counter] what does counter repent

  23. Lance Rose December 2, 2019 at 12:16 am - Reply

    counter could have been i or is counter a function too?

  24. Sudarshan Lahoti December 2, 2019 at 12:16 am - Reply

    In the printing statement why is there a + sign after the counter and a + sign before the bucky[counter]?

  25. pritam chavan December 2, 2019 at 12:16 am - Reply

    Here you will get the all java related questions and tutorials andPrograms check it out http://b2ajava.blogspot.in/p/blog-page_16.html

  26. Muhammad Hammad Khalid December 2, 2019 at 12:16 am - Reply

    Can someone please explain the last part of the code bucky[Counter] ,how come this part is pulling the arrays values

  27. @LD@veloper December 2, 2019 at 12:16 am - Reply

    ARRAY TABLE USING WHILE LOOP

    int i =0,sum=0;
    int [] a = {2,2,4,4,5,5};

    System.out.println("numbertarray");

    while(i<a.length) {
    System.out.println(i+"t"+a[i]);
    sum = sum +a[i];
    i++;

    }
    System.out.println("=============================/nthe sum "+sum);
    }

    }

  28. Isaac Sacagiu December 2, 2019 at 12:16 am - Reply

    I was watching this to get help for my exam tomorrow. And I couldn't be more thankful in how well you explained arrays to me. So all I can say is, Thank You so much man.

  29. tee jay December 2, 2019 at 12:16 am - Reply

    On line 7, why is there a "+" after the "counter" and also a "+" before the "bucky[counter]?

  30. tee jay December 2, 2019 at 12:16 am - Reply

    On line 7, why is there a "+" after the "counter" and also a "+" after the "bucky[counter]

  31. Patrascu Lucian December 2, 2019 at 12:16 am - Reply

    class learn {
    public static void main(String[] args) {
    System.out.println("IndextTeamttPoints");
    String team[]= {"Barca","Bayern","Chelsea","PSG"};
    int points[] = {50,45,55,40};

    for(int counter=0;(counter<team.length);counter++) {
    System.out.println(counter+1 + "t" + team[counter] + "tt" + points[counter]);
    }
    }
    }

  32. Patrascu Lucian December 2, 2019 at 12:16 am - Reply

    Just use counter+1 on the last line for a normal row counting:

    class apples {
    public static void main(String[] args) {
    System.out.println("IndextValue");
    int bucky[]= {5, 84, 91, 2, 76, 78};

    for(int counter=0;counter<bucky.length;counter++) {
    System.out.println(counter+1 + "t" + bucky[counter]);
    }
    }
    }

  33. Shaun December 2, 2019 at 12:16 am - Reply

    Allows you to specify how many weapons you need, select the weapons using their ID and then keeps a count of the quantity of weapons you have. Sort of like how RPG games may keep track of items which the player posses.

    ___________________________________________________________________________________________________________

    import java.util.Scanner;

    public class Main {
    public static void main (String args[]) {
    String weapon []= {"AK47", "AR15", "RPG", "Knife", "Pizza"};
    int weaponAmount []= {0,0,0,0,0};

    Scanner userInput = new Scanner(System.in);

    System.out.println( "Index" +" t "+ "Weapon" + " t "+ "Quantity");
    int weaponQuantityCounter = 0;
    for (weaponQuantityCounter = 0; weaponQuantityCounter<weapon.length; weaponQuantityCounter++) {
    System.out.println( weaponQuantityCounter +" t " + weapon[weaponQuantityCounter] +" t t "+ weaponAmount[weaponQuantityCounter]);
    }
    System.out.println(" Select how many weapons you would like");
    int number = userInput.nextInt();
    System.out.println("Please select " + number+ " of the weapons you would like");
    for (int amountOfWeps=1; amountOfWeps<=number;amountOfWeps++){
    System.out.println("——————————————————————— ");
    System.out.println("You have selected " + (amountOfWeps-1) + "/" + number + " meaning you have " + ((number-amountOfWeps)+1) + " weapons left to select ");
    int weaponSelect = userInput.nextInt();
    while (weaponSelect>weapon.length) {
    System.out.println("there is no weapon with this Id – Please select another value");
    weaponSelect = userInput.nextInt();
    }
    for (int i = 0; i < 50; ++i) System.out.println();
    System.out.println("You selected the " + weapon[weaponSelect]);
    weaponAmount[weaponSelect]++;
    System.out.println( "Index" +" t "+ "Weapon" + " t "+ "Quantity");
    weaponQuantityCounter = 0;
    for (weaponQuantityCounter = 0; weaponQuantityCounter<weapon.length; weaponQuantityCounter++) {
    System.out.println( weaponQuantityCounter +" t " + weapon[weaponQuantityCounter] +" t t "+ weaponAmount[weaponQuantityCounter]);
    }

    }
    System.out.println("You can't select anymore weapons as you've reached the maximum of " + number);
    }
    }

  34. I dont Really know December 2, 2019 at 12:16 am - Reply

    Hi guys..may i ask ..how do is input something by the users susing arrays and calculate that like the SUM,AVERAGE,HIGHEST,LOWEST..plsss help me

  35. mei mei December 2, 2019 at 12:16 am - Reply

    THANKS NEW BOSTON FOR GUIDING MY CLASS A LOT. FGS WE LOVE YOU SO DAMN MUCH . XOXO . HOW DID U BECAME SUCH A SMARTYASS ? ^0^

  36. HATIM DALAL December 2, 2019 at 12:16 am - Reply

    Why cant we put counter=0 above the for loop ?

  37. lim cia ler December 2, 2019 at 12:16 am - Reply

    is the counter = index in here?

  38. Fierce Warriors December 2, 2019 at 12:16 am - Reply

    Bro, you are a life savior….I am currently taking Java now at the university I go to. Your tutorials have literally helped me understand what this man is talking about. I should be paying you not my professor. Outstanding job bro sincerely and thank you again.

Leave A Comment

*