Our instructor actually gave us the code and we just have to add the +fillArrayFromUser(). I'm still learning the array and I get confused with it.
Type: Posts; User: mikemontesa
Our instructor actually gave us the code and we just have to add the +fillArrayFromUser(). I'm still learning the array and I get confused with it.
First when I called to do the
stats.fillArray();
nothing happened. When I added stats.fillArrayFromUser();, this is what's printed.
Enter a value91
Looks likes its generating a random...
I still need help. That output is the expected output. I don't know how to fill its array with values form the user by invoking the fillArrayFromUser method and displaying the array by invoking the...
So I created this StatsArray.java with exception.
import java.awt.*;
import java.util.Random; //for our random number generator
import java.util.Scanner;
public class StatsArray
{