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 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.
This has been flagged as spam show
How would you display the number is descending & ascending order??
MiSSYlOVE420 2 months ago in playlist More videos from GWShane
Comment removed
MiSSYlOVE420 2 months ago in playlist More videos from GWShane
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
You should make a video about arraylists
djtwister87 3 years ago 3
@djtwister87 I hope to get to that someday!
GWShane 3 months ago