Solved

Array designed and implemented by user input

Posted on 2006-06-11
4
188 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
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
groupSumClump challenge 9 98
Running Jira on Raspberry PI 2? 3 246
Securing Jmx Console and web console 2 64
Groovy:unable to resolve class error 2 65
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…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
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:
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

947 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now