I am a very beginner to Java and now learning it.Here some little point I want to know clearly.
Add code tags. CR[/edit]
I made the above program but have error.The idea is to accept the command line arguments and display how many arguments are there.
I can make it by the following alternative way.However..I also would like to know why question for my first program.
Welcome to JavaRanch
Please use the CODE button; I have edited your original post so you can see how much better it looks.
campbell@linux-747u:~/java> java readArgs Campbell Ritchie Ye Zeya
The Number of Arguments = 4
I can see no errors; please supply more details of your problem.
Joined: Oct 31, 2008
Arr....Sorry for my childish carelessness. I compiled the program with wrong name readArgs2 in stead of renaming the former program readArgs.java .So the main class does not match the file 's name . .Really sorry for my fault.
Thank you for your kind helps.Next time I will try to avoid such funny mistakes.
Joined: Aug 16, 2007
Joined: Oct 13, 2005
We all do things like that
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com