Hi

......
Random select = new Random();
for(int i =0;i<5;i++)
{
petChoice = thePets[select.nextInt(thePets.length)];

System.out.println("\nYour choice:\n" + petChoice);
petChoice.sound();
}
.................
This part of coding gives the erroe as follows:
C:\Data\Mukti\Java\TestDerived\TestInterface.java:19: Wrong number of arguments
in method.
petChoice = thePets[select.nextInt(thePets.length)];

I am not able to figure out.Can someone help.
Thanks in advance.
Mukti
^