Search:

Type: Posts; User: debug

Search: Search took 0.09 seconds.

  1. Thread: Fractions

    by debug
    Replies
    1
    Views
    1,538

    Fractions

    is there any standard library function to convert decimals to fractions, for example if the input is 3.14159265 the output = 22/7 ?
    thanks!
  2. Replies
    1
    Views
    1,803

    Re: Converting an array

    is this what you looking for?


    TreeMap tm = new TreeMap();
    tm.put('A', 1);
    tm.put('B', 2);
    tm.put('C', 3);
    tm.put('D', 4);

    ...
  3. Replies
    3
    Views
    11,215

    Re: treemap Duplicates

    can you elaborate please? thanks!

    i want to use the treemap class to do something like:
    (sort the names according to height if the height is same sort the names according to weight)

    at the...
  4. Replies
    3
    Views
    11,215

    treemap Duplicates

    hi!
    i need help with the treemap, the problem is if i store 2 elements with the same key but different values, only the latest entry gets stored for example


    TreeMap map = new TreeMap();...
Results 1 to 4 of 4