hi
i am devloping a program in which i have to pass variable number of arguments
to the method defined in other class how would i do that
for example,
public class myClass{
public static void main(){
OtherClass oClass = new OtherClass();
/**
i want exectly the same implemantation
as shown below
*/
oClass.otherMethod("arg1","arg2","arg3"); //all the arguments
oClass.otherMethod("arg4"); //are String
}//!myClass

//this class is defined in other file and dosnt have
// main() method

public class OtherClass{

//what should i put as the arguments the otherMethod takes
public otherMethod(?????????){....implemantation...}

} //!OtherClass