Java Video Tutorial 6: How to use Arrays (Pt 2 of 2)
Loading...
8,841
Uploader Comments (GWShane)
Top Comments
-
You should make a video about arraylists
see all
All Comments (10)
-
@djtwister87 I hope to get to that someday!
Loading...
What if you want to use the data in the array. For example, my teacher told me to make a program that asks the use for numbers between 0 and 25, and using arrays, to tell the user how many of each number he typed in. I have no clue how to do that.
FetusFries11 1 year ago
@FetusFries11 I figure if each entry were going into this array. You could make a loop that pulls each value, and then a nested loop that would go through each character of the current value from the array. Set it to where some sort of counter would increment every time the number that you were currently looking for had been found, and of course, print it out afterward.
GWShane 3 months ago
I appreciate your lecture. It was helpful !
sohaibkkkhan 1 year ago
@sohaibkkkhan Thanks! Glad you found it useful.
GWShane 3 months ago
how do you put stuff into the array?????????????
1SavageDragon1 1 year ago
@1SavageDragon1 Simply by assigning a value to a given location in the array.
GWShane 3 months ago