• Post Reply Bookmark Topic Watch Topic
  • New Topic

Statistican Problem  RSS feed

 
Kristie Tollstam
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can i amke a sequence of numbers in Java compute things without an array?

Thank you
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 16057
88
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch.

Your questions sounds quite vague, so it is not clear what exactly you want to know. Can you explain in more detail what you're trying to do, so that we can give you a useful answer?
 
Campbell Ritchie
Marshal
Posts: 56529
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The word "sequence" is sometimes used as a synonym of List. You can put numbers into a List object, and get all the numbers in the List in order.

Have a look at the Java Tutorials about Collections, and you will need to know about auto-boxing and unboxing which (Java 5 and 6 only) make it much easier to use Lists of Numbers.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!