Solved

Array designed and implemented by user input

Posted on 2006-06-11
4
193 Views
Last Modified: 2010-03-31
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.
0
Comment
Question by:Sarah777
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 30

Accepted Solution

by:
Mayank S earned 125 total points
ID: 16880781
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/
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:

729 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question