Hi guys...
Thanks for viewing my thread and hopefully u could reply a thing.
i have this:
input: -i 2,3,4,5
public class Main
{
public static void main (String [] args)
{
static int value[];
static no_of_parameter;
for (int i=0;i<args.length;i++)
{
if (args[i].equals ("-i"))
{
String value_str = new String();
// assign data values automatically to data by commas
StringTokenizer s = new StringTokenizer (value_str,",");
// count parameter
no_of_parameter = value_str.replaceAll("[^,]","").length();
no_of_parameter++; // as an array size
value = new int [no_of_parameter];
int k =0;
while (s.hasMoreTokens())
{
value[k]=Integer.parseInt(s.nextToken());
k++;
}
}
generate (value[],no_of_parameter);//how can i pass value in array?
}
generate (value_array_list,no_of_parameter)
{
//operate an array for value and parameter
}
}