HELP array cmdline argument
Can any one help me plz
for school i have to make the following program with arrays command-line argument
The program must ask me the number of days and show me the date as result
This is the result of the program as shown under
tnx every one
__________________________________
java Days 123
day 123 is 3 May
java Days 365
day 365 is 31 December
java Days 1
Day 1 is 1 january
Re: HELP array cmdline argument
What have you done so far? We won't do your homework for you, please post your thoughts/code and tell us what part you're having problems with and we'll be happy to help you.
Re: HELP array cmdline argument
You can take user input using the Scanner class:
http://www.javaprogrammingforums.com...ner-class.html
Take a look at our Code Snippets forum - Java Code Snippets and Tutorials - Java Programming Forums
There are other examples there which may help you.
Please post what you have done so far and we can take it from there...