Ruru123's Profile User Rating: -----

Reputation: 0 Apprentice
Group:
Active Members
Active Posts:
59 (0.06 per day)
Joined:
09-October 11
Profile Views:
2,450
Last Active:
User is offline Jan 04 2013 05:17 AM
Currently:
Offline

Previous Fields

Country:
GB
OS Preference:
Mac
Favorite Browser:
Safari
Favorite Processor:
Who Cares
Favorite Gaming Platform:
Who Cares
Your Car:
Who Cares
Dream Kudos:
0
Icon   Ruru123 has not set their status

Posts I've Made

  1. In Topic: SWT (Standard Widget Toolkit - Java)

    Posted 12 Aug 2012

    So do you suggest I use SWT or swing??

    I need my application to be really graphic....
  2. In Topic: Parsing Integers

    Posted 22 May 2012

    View PostRyano121, on 22 May 2012 - 06:15 AM, said:

    It's because it's acts like any other object.

    If you make a class and don't override the .toString method, and call println, it will give the hashcode like it did here.

    All that's happening is we are calling the Arrays class .toString to give a visual representation of the object that is readable to the user.



    Oh I see. Thanks alot :)
  3. In Topic: Parsing Integers

    Posted 22 May 2012

    View PostRyano121, on 22 May 2012 - 06:07 AM, said:

    It's not a random value its the hashcode of the array that is generated when you call println on the array.

    Instead try the Arrays.toString() method -

    System.out.println(Arrays.toString(intArray);
    

    return intArray;


    Thank you. I tried that and got what I wanted.
    But, why do I have to do that..why couldn't I just put the array name?
  4. In Topic: Pseudocode for Coin Changing Algorithm

    Posted 3 May 2012

    How would I make the algorithm correct for all coin systems?
  5. In Topic: Pseudocode for Coin Changing Algorithm

    Posted 3 May 2012

    View Postsepp2k, on 03 May 2012 - 12:25 PM, said:

    Just to clarify: Will you always use the British system? Or was that just an example and it will be variable and might thus be anything?

    In the latter case, you should be aware that the greedy algorithm described by pbl will not work for all systems.


    No, I won't always be using the British system. As I stated in my first post it should work for a wide variety of coin systems. So you are absolutely right.

    I thought, I can just change his denom array so that it takes in any coin systems.. and then it should just undergo the same algorithm.. or is that not the way it works?

My Information

Member Title:
D.I.C Head
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:
Location:
London
Years Programming:
1
Programming Languages:
Java, C, Haskell, Python

Contact Information

E-mail:
Click here to e-mail me

Comments

Ruru123 has no profile comments yet. Why not say hello?