|
Pedro, The average is computed by dividing the sum af the ages by the number of the ages. The number of the ages would be args.length / 2, right? The ages appear in the args array at indexes 1, 3, 5, 7, etc.. or : for (int i = 1; i < args.length /2; i+=2) {...} Try it this way. Marco pedro oliveira wrote: Hi, --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/javaprogrammingwithpassion?hl=en -~----------~----~----~----~------~----~------~--~--- |
- [java programming] Lab 1038 - Command Line Arguments pedro oliveira
- [java programming] Re: Lab 1038 - Command Line Arg... Dasarathy Raghavan
- R: [java programming] Re: Lab 1038 - Command L... Giulio Bellezza
- [java programming] Re: Lab 1038 - Command Line Arg... Babu Rajendran
- [java programming] Re: Lab 1038 - Command Line Arg... Marco Versele
- [java programming] Re: Lab 1038 - Command Line Arg... James
