Search:

Type: Posts; User: Iglesias

Search: Search took 0.19 seconds.

  1. Re: Help, Want to make a BASIC min value Method with Generics

    I sort of wrote a program in C and wanted to convert it to Java. This method happens to be a part of the library of functions that I use, so I am hoping to convert my existing "legacy" code into a...
  2. Re: Help, Want to make a BASIC min value Method with Generics

    I want to compare two objects, but they could be Double or they could be Integer or Float. I want to use T instead of Integer, Double, or Float. I am hoping that I could just use T... syntactic error...
  3. Help, Want to make a BASIC min value Method with Generics

    What is wrong with the following?

    public static <T> T Min(final T Value1, final T Value2)
    {
    return((Value1 < Value2) ? Value1 : Value2);
    }

    I am just trying to make a simple...
Results 1 to 3 of 3