This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes adding integers dynamically to an array or arraylist Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "adding integers dynamically to an array or arraylist" Watch "adding integers dynamically to an array or arraylist" New topic
Author

adding integers dynamically to an array or arraylist

Komal Amaresh
Ranch Hand

Joined: Oct 06, 2008
Posts: 67
Sir,

I would like to add integers dynamically to an array or an arraylist. can you tell me a solution to take inputs from the user and display the entered values of size based on the values enterd by the user.I
give an option to press the space bar if the user wishes to stop and display the result.

thanking you

with regards,
komal
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14278
    
  21

Welcome to JavaRanch.

This sounds like a homework assignment. Here at JavaRanch we are happy to help you, but you will have to do your own homework. If we would just write the program for you, you would not learn anything.

So, tell us what you've done yourself so far, show us your code, and then ask specific questions about the point where you got stuck.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: adding integers dynamically to an array or arraylist