HI... try this with the following piece of code. And call the method from another class
public class Lists {
int [] _Array1;
int [] _Array2;
int [] _Array3;
public Lists(int [] Array1, int [] Array2, int [] Array3){
this._Array1 = Array1;
this._Array2 = Array2;
this._Array3 = Array3;
}
public void printArray(){
System.out.println("Printing the first Array");
for(int i=0;i<_Array1.length;i++){
System.out.println(_Array1[i]);
}
System.out.println("Printing the second array");
for(int i=0;i<_Array2.length;i++){
System.out.println(_Array2[i]);
}
System.out.println("Printing the 3rd Array");
for(int i=0;i<_Array3.length;i++){
System.out.println(_Array3[i]);
}
}
}