Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Closed Thread
Old 12-07-2008, 06:40 PM   #1 (permalink)
 
Newb Techie

Join Date: Dec 2008

Posts: 20

BLNT1 is on a distinguished road

Default can i get some java help?

1) Ask the user how many elements should be stored in the array
2) Create an integer array that holds the same number of elements
HINT (Use variable containing input number when defining array)
HINT 2 (Use for loop when gathering user input for populating array)
3) Have user enter values that will populate array
4) Pass array to method that returns the same array. However all elements have had 10 added to them.
5) Display the current values in the new array from the MAIN method. One value should be displayed per line.
BLNT1 is offline  
Old 12-07-2008, 08:54 PM   #2 (permalink)
office politics's Avatar
 
It's all just 1s and 0s

Join Date: Jan 2004

Location: in the lab

Posts: 4,410

office politics will become famous soon enough

Default Re: can i get some java help?

sounds like fun.


arrays
Arrays (The Java™ Tutorials > Learning the Java Language > Language Basics)


commandline input
Learn Java (How-To): Java interactive command-line input


passing arrays
Java code example - Passing arrays and individual array elements to methods
office politics is offline  
Old 12-07-2008, 08:55 PM   #3 (permalink)
CrazeD's Avatar
 
Wizard Techie

Join Date: Feb 2006

Location: Maine

Posts: 3,683

CrazeD will become famous soon enough

Send a message via AIM to CrazeD Send a message via MSN to CrazeD
Default Re: can i get some java help?

Sounds like homework.
__________________

Need website help? PM me!
CrazeD is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Java Problem s1nglef1sh Windows Operating Systems and Software 5 10-06-2008 05:10 PM
Need Java help CrazeD Programming Discussions 4 09-29-2008 06:29 PM
Updates for Java eliminate many security holes Trotter Browser & General Internet Questions 1 07-11-2008 09:54 PM
Some Java Questions Redavni Programming Discussions 1 06-30-2008 09:55 AM
Dangerous Java Flaw Threatens Virtually Everything Osiris Virus - Spyware Protection / Detection 1 07-13-2007 04:44 PM