Thread: Number in Java
View Single Post
Old Mar 23rd, 2008, 5:00 PM   #1
RainMan
Newbie
 
Join Date: Mar 2008
Posts: 7
Rep Power: 0 RainMan is on a distinguished road
Number in Java

Is there any way to have a user input a set of numbers in the form of 0...whatever. i.e like 0...100 and have java take every number between 0 to 100.? I'm asking because as a personal project I am trying to write a program that will evaluate if a set is an algebraic group or not. I'm aware that this has probably been done and better than I will be able to do it but i think it will be a productive exercise for me. I would like the user to be able to enter a set of any size without having to enter in each individual number. Especially since you can have groups that are infinitely large. I haven't figured out how to deal with infinite groups yet. any thoughts on that would be a good thing too.

What I have come up with idea wise so far is to use an array to deal with the numbers, however i only know how to pass the array elements as arguments that the user has to input individually. Then the operations are just simple comparisons and evaluations.

Another thought I have had is to make it so that the program will determine what sets of the entered values are groups, but that involves getting the code to throw out values and keep others to return them, which might be a bit over my head at this point. I am really just focusing on getting the basic program going right now any pointers in the right direction would be appreciated.
__________________
Preposterous amounts of testosterone....Preposterone - powerthirst
RainMan is offline   Reply With Quote