• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 201
  • Last Modified:

Array designed and implemented by user input

Write a program that allows the user to input an array's size, and then prompts the user for all the values to put in that array, and finally prints them all. Use Exception Handling to get valid user input. You are free to choose the primitive data type or String array.
1 Solution
Mayank SAssociate Director - Product EngineeringCommented:
We can't do your home-work ;-) its against site-rules. You need to come up with some initial code and we can try to help fixing it.

As a start, try these:

Reading from standard-input: http://www.javaalmanac.com/egs/java.io/ReadFromStdIn.html

Arrays: http://www.javaalmanac.com/egs/java.util/pkg.html#Arrays

Exception-handling: http://www.javaalmanac.com/egs/Java%20Language/TryCatch.html

Also look at the basic Java tutorial: http://java.sun.com/docs/books/tutorial/

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now