i have written a simple program which are takingargument through command line ,but when i am trying to run a file itsimply run a file without taking input .Please help me out ,i am usingnetBeans 5.5 IDE and jdk 1.5.
would u tell us how u r executing the program???and if possible send us the code also..
While running the program using command line did you mentioned the argumentlike this...
i want the complte program.so that i can compile u r pgm andsend u r problem
here is a simple example//file myclass.java//source codeclass myclass{public static void main (String params[]){for (int i=0; i< params.length; i++){System.out.println(params[i]);}}}//compile> javac myclass.java//no errors of course cuz i wrote it ;-)//Call it from command line as:> java myclass first-arg second-arg third-arg//output looks likefirst-argsecond-argthird-argMake this example and then make ur code something like it.
this type of programe are not available with use of netbean5.5
while running put java <file Name> <letters to be print> press enter