11 Replies Latest reply: May 25, 2007 9:51 AM by 807600 RSS

    Arrays - Can't find method

    807600
      Hi,
      can you help me with this error:
           import java.util.*;
           import java.lang.*;
           public class ArrayAsParameter
          {
              static final int ARRAY_SIZE = 10;
              static Scanner console = new Scanner(System.in);
              
              public static void main (String[] args)
              {
                  int[] listA = new int[ARRAY_SIZE];
                  int[] listB = new int[ARRAY_SIZE];
                  
                  System.out.print("List elements array: ");
                  printArray(listA, listA.length);
                  System.out.println();
                  
                  System.out.print("Enter integers: " + listA.length);
                  fillArray(listA, listA.length);
                  System.out.println(); 
             }
         }
      I have error cant find method printArray, fillArray!
      This methods are in java.lang
      thx