...and?
Recommended reading: http://www.javaprogrammingforums.com/cafe/9544-problem-spoon-feeding.html
Type: Posts; User: KevinWorkman
...and?
Recommended reading: http://www.javaprogrammingforums.com/cafe/9544-problem-spoon-feeding.html
Smells like a homework assignment. How would you do this by hand, with a piece of paper and a pencil? Write that out, and you'll have an algorithm that should be pretty easy to translate to code.
This is the first result when googling "java arrays": Arrays (The Java™ Tutorials > Learning the Java Language > Language Basics)
What part of this are you stuck on? What have you tried? What...