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 🙂
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…
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.
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.
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!
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.
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.
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); } }
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.
why no sound?
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 🙂
2019 ?
The number of “earnin” ads are killing me.
What if you want to put a name in to the array, how would i do that??
lol
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…
I'm pretty sure that length is array's attribute instead of a method, but I could be wrong.
thank you soooooooooooooo muuuch
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.
Amazing
Making an Excel Budget Spreadsheet!!!hahaha!
how can i enter nums inside the "buck[]" by scanner? and then print all as that table?
pls.
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
after these turtorials i feel like punching anyone in the face that says coding isnt hard
Thank you!!!!!! 🙏🏼
never got Array table to work has the code changed since 2009?
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.
hey i like the way he used bucky[counter]
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!
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
I’m confused on the value of counter such as becky[counter] what does counter repent
counter could have been i or is counter a function too?
In the printing statement why is there a + sign after the counter and a + sign before the bucky[counter]?
Here you will get the all java related questions and tutorials andPrograms check it out http://b2ajava.blogspot.in/p/blog-page_16.html
Can someone please explain the last part of the code bucky[Counter] ,how come this part is pulling the arrays values
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);
}
}
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.
On line 7, why is there a "+" after the "counter" and also a "+" before the "bucky[counter]?
On line 7, why is there a "+" after the "counter" and also a "+" after the "bucky[counter]
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]);
}
}
}
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]);
}
}
}
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);
}
}
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
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^
Why cant we put counter=0 above the for loop ?
is the counter = index in here?
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.