Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

 
 
Thread Tools Display Modes
Prev Previous Post in Thread   Next Post in Thread Next
Old Mar 23rd, 2008, 4: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
 

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Programming with Java: Tutorial ReggaetonKing Java 7 May 20th, 2008 10:58 AM
Special browser in Java (Project) stalefish Java 3 Feb 9th, 2008 4:22 PM
Guess a Number 3n! C++ 7 Dec 2nd, 2007 3:38 AM
Java programmers, game developers, artists, be ware! RPG game team is recruiting! atcomputers.us Paid Job Offers 7 Sep 25th, 2005 7:25 PM
objects in java cwl157 Java 6 Mar 2nd, 2005 1:06 PM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 8:00 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC