Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

adding integers dynamically to an array or arraylist

 
Komal Amaresh
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15359
39
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic