TFoSSDQ's Profile User Rating: -----

Reputation: 122 Stalwart
Group:
Contributors
Active Posts:
254 (0.28 per day)
Joined:
09-December 10
Profile Views:
2,083
Last Active:
User is offline 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

Icon   TFoSSDQ back on DIC cuz I'm at work with nothing to do

Posts I've Made

  1. In Topic: Gui Help

    Posted 4 Aug 2011

    Did you add the ActionListener to the button?
  2. 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)
  3. 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.
  4. In Topic: How to split up large numbers ?

    Posted 27 Jul 2011

    View Postdaonlyillwiz, 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
  5. In Topic: How to split up large numbers ?

    Posted 27 Jul 2011

    View Postdaonlyillwiz, 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

Comments

Page 1 of 1
  1. Photo

    TFoSSDQ Icon

    23 Mar 2011 - 04:43
    Wow, that's weird, I didn't even notice XD, and I'm glad to be here :)
  2. Photo

    ishkabible Icon

    22 Mar 2011 - 20:33
    u look like a mod on the kudos board :) nice to see another young DIC fan :)
  3. Photo

    Dogstopper Icon

    24 Jan 2011 - 14:01
    Welcome to DIC! I've seen you around, but haven't said anything to yet! Welcome buddy!
Page 1 of 1