I am working on creating a class that has a constructor that takes integers and creates an integer array, double array, and character array of the size of the integers. I would like to test my code as I go along in a driver class, but I cannot figure out how to call my method stealIntegerArray in my toString method. I understand that the code in the stealIntegerArray method is most likely very wrong, but I only need to know how to call on that method for now. I am getting the error "The method stealIntegerArray(int[]) in the type ArrayBoss is not applicable for the arguments ()".
public class ArrayBoss
{
private int[] integerArray;
private int intArray;
public ArrayBoss(int i, int t, int c)
{
intArray = i;
int[] integerArray = new int[i];
}
public int[] stealIntegerArray(int[]
numArray)
{
numArray = integerArray;
numArray[0] = -1234;
return integerArray;
}
public String toString()
{
return stealIntegerArray();
}