?
Solved

Array designed and implemented by user input

Posted on 2006-06-11
4
Medium Priority
?
196 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 500 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

Enroll in August's Course of the Month

August's CompTIA IT Fundamentals course includes 19 hours of basic computer principle modules and prepares you for the certification exam. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
Suggested Courses
Course of the Month9 days, 13 hours left to enroll

762 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