public static int removeElement(int[] array,int size,Scanner in)throws IOException
{
System.out.println("Enter the number to remove");
int removeElement = in.nextInt();
boolean found = false;
int index = 0;
for(int i=0; i<size && !found; ++i)
{
if(array[i] == removeElement)
found = true;
++index;
}
array.splice(index,1);
I got an error on the array.splice(index,1);
that says
Cannot invoke splice(int, int) on the array type int[]