import java.util.Scanner;
public class Lab10_Ex3
{
public static void main (String [] args)
{
String [] strings = new String[4];
strings[0] = "Einstein";
strings[1] = "Newton";
strings[2] = "Copernicus";
strings[3] = "Kepler";
showElements(strings);
}
public static void showElements(int[] strings)
{
System.out.print("The contents of the array are: ");
System.out.println(strings[0]);
System.out.println(strings[1]);
System.out.println(strings[2]);
System.out.println(strings[3]);
}
}
ERROR:
showElements(int[]) in Lab10_Ex3 cannot be applied to (java.lang.String[])
showElements(strings);
^
1 error
any ideas?