TFoSSDQ's Profile
Reputation: 122
Stalwart
- Group:
- Contributors
- Active Posts:
- 254 (0.28 per day)
- Joined:
- 09-December 10
- Profile Views:
- 2,083
- Last Active:
Sep 12 2011 05:48 PM- Currently:
- Offline
Previous Fields
- Country:
- US
- OS Preference:
- Windows
- Favorite Browser:
- Chrome
- Favorite Processor:
- Intel
- Favorite Gaming Platform:
- XBox
- Your Car:
- Hyundai
- Dream Kudos:
- 150
Latest Visitors
-
bluebird1002 
08 Nov 2012 - 14:05 -
LogicError 
27 Dec 2011 - 23:58 -
Java Neil 
04 Sep 2011 - 10:19 -
daonlyillwiz 
27 Jul 2011 - 13:03 -
giggly kisses 
15 Jul 2011 - 06:05 -
macosxnerd101 
14 Jul 2011 - 13:55 -
darek9576 
09 May 2011 - 11:24 -
v0rtex 
03 May 2011 - 06:40 -
blixna_waka 
02 May 2011 - 07:38 -
halopower67 
04 Apr 2011 - 15:48
Posts I've Made
-
In Topic: Gui Help
Posted 4 Aug 2011
Did you add the ActionListener to the button? -
In Topic: NullPointerException - Can't figure out why.
Posted 2 Aug 2011
Wouldn't you want a World object instead of calling a static method to get a list of something? Assuming the list changes of course. (line 32 in the code) -
In Topic: JSwing Issue with FOCUS
Posted 2 Aug 2011
Ugh, don't use the Netbeans GUI builder. The code is horrible and unreadable so it's really hard to debug.
What form are you referring to in the code? I don't see anything by that name or type. -
In Topic: How to split up large numbers ?
Posted 27 Jul 2011
daonlyillwiz, on 27 July 2011 - 01:40 PM, said:In my first post i posted the number 15,000,701,800,029 can be represented as 15*10^12+0*10^9+701*10^6+800*10^3+29*10^0 which would look like this represented by a 5 node list (15,0,701,800,29)
I was thinking using a node for each digit that stores an integer between 0 and 999 in each node.
But how ??
Going back to my first response to this and putting together an example:
String num = "15,000,701,800,029"; String[] sections = num.split(",");
now in every index in "sections" is each of the parts between the commas -
In Topic: How to split up large numbers ?
Posted 27 Jul 2011
daonlyillwiz, on 27 July 2011 - 01:10 PM, said:Yea i keep getting errors when i put a digit that long or longer how would i convert the new ints we created to a big int or maybe even split up the number by the commas in it ex: 100,000,002,750,004,128,293,702,165,000 that obviously didnt work when i set first to that so what would i have to do in this case ?
In the BigInteger constructor you give it a String of the number you want to store, aka: BigInteger bigInt = new BigInteger("129247190284710"); or whatever number
All operations of BigInteger are methods, such as bigInt.add(another_BigInteger) which returns a third BigInteger
My Information
- Member Title:
- D.I.C Regular
- Age:
- 19 years old
- Birthday:
- April 28, 1994
- Gender:
-
- Interests:
- Programming, Tennis, and my girl :)
- Full Name:
- Ben Rose
- Years Programming:
- 3
- Programming Languages:
-
Well Experienced: Java
Can program well: C++
Web Design: HTML, CSS, PHP, JS
Contact Information
- E-mail:
- Click here to e-mail me
Friends
|
|


Find Topics
Find Posts
View Reputation Given
|
Comments
TFoSSDQ
23 Mar 2011 - 04:43ishkabible
22 Mar 2011 - 20:33Dogstopper
24 Jan 2011 - 14:01