Solved

Array designed and implemented by user input

Posted on 2006-06-11
4
187 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:
mayankeagle earned 125 total points
Comment Utility
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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
parentbit challenge 3 51
Free Alternative to JIRA 4 53
Non-recursive backtracking, using a stack 1 48
mockito example issue 8 30
For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:

743 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

15 Experts available now in Live!

Get 1:1 Help Now