A
ankit gupta
can any one teel me whts the problem in this code]
class variablelength
{
static void vatest(int ... v)
{
System.out.print("number of args: "+ v.length+ " contents ");
for (int x:v)
System.out.println(x + " " );
System.out.println();
}
public static void main(String args[])
{
vatest(10);
vatest(1,2,3);
vatest();
}
}
class variablelength
{
static void vatest(int ... v)
{
System.out.print("number of args: "+ v.length+ " contents ");
for (int x:v)
System.out.println(x + " " );
System.out.println();
}
public static void main(String args[])
{
vatest(10);
vatest(1,2,3);
vatest();
}
}