HI,
>
> when i run the programm it done  not ask me for input as below ,I don't
> understand wht think i missed



> public class CommandLine
> {
> public static void main (String argv [])
> {
> int length = argv.length;
> String myString = “No. of parameters”r
> + “ on the command line: ”;
> System.out.println (myString + length);
> for (int i=0; i length; i++)
> {
> myString = argv[i];
> System.out.println
> (i + “: ” + myString);
> }
> }
> }
> • Input: java CommandLine Java is a good
> language.
> • Output: No of parameters on the command line: 5
> 0: Java
> 1: is
> 2: a
> 3: good
> 4: language.
>

-- 
To post to this group, send email to javaprogrammingwithpassion@googlegroups.com
To unsubscribe from this group, send email to 
javaprogrammingwithpassion+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/javaprogrammingwithpassion?hl=en

Reply via email to