Hi, ich möchte gern ein paar Daten über die Konsole einlesen.
Bei mir wirft er ne ArrayIndexOutOfBound Exception. Woran liegts ??? Hab das bisher doch immer so gemacht.
Java:
public class BenchmarkingGuiSimulation implements BenchmarkingClientGuiInterface {
private static int nOC;
private static int nOM;
private static int mL;
private static int cTT;
public static void main(String args[])
{
PropertyConfigurator.configureAndWatch("log4j.client.properties", 60 * 1000);
//new BenchmarkingGuiSimulation().doWork();
System.out.println("NumberOfClients?");
nOC = Integer.parseInt(args[0]);
System.out.println("ClientThinkTime?");
cTT = Integer.parseInt(args[0]);
System.out.println("MessageLength?");
mL = Integer.parseInt(args[0]);
System.out.println("NumberOfMessages?");
nOM = Integer.parseInt(args[0]);
}
Bei mir wirft er ne ArrayIndexOutOfBound Exception. Woran liegts ??? Hab das bisher doch immer so gemacht.