posted 23 years ago
class strr
{
public void printarr(long[] x)
{
for(int i=0;i<x.length;i++)>
{
System.out.println("#" + i+"=" +x[i]);
}
}
int [] small ={1,2,3,4,5,6};
public void showsmall()
{
printarr(small);
}
}
why not the int array is automatically converted to fit into long array (the parameter of the method called)???