import becker.io.*;

class ArrayHelper extends Object
{
    TextInput in = new TextInput();


    // Copy this from the previous part of the ICE
    public void PrintArray()
    {
    }

    // How do you say that you're going to return an array as your
    // answer?
    public ??? FillArray( )
    {
        System.out.println("How many integers do you want to store?");
        int howManyInts = in.readInt();
        in.readLine();
        
        int newArray = new int[howManyInts];
        
        // Your code goes here - use
        // the "process all elements" pattern, where the work
        // to be done is asking the user for the value of each element
        
        
        return ????; // what do you want to return?
    }
}

public class ICE_18_FillArray extends Object
{
    public static void main(String[] args)
    {
        ArrayHelper ah = new ArrayHelper();
   
        int [] newlyCreatedArray; // notice that we don't use new to actually create it
                                // it'll get created in FillArray, above
                                
        newlyCreatedArray = ah.FillArray();
        ah.PrintArray(newlyCreatedArray); 
    }
}