Paul Clapham wrote:
Marcus Kelvin wrote:Aren't lastIndexOf() and substring() String methods?
Well, no, they aren't. Normally they would be, but if you read the error message
you'll see that in that code, String is not the class java.lang.String, it's an oddly-named type variable.
Okay. This I noticed. So what is "type-variable" in relation to the class java.lang.String?
Can I step back a few hours and ask why you want your ReportComparator class to be generic? Why don't you just have
in which ReportComparator is just an ordinary, non-generic class?
This is day 2. I'm hoping the language makes more sense soon...with your help it may, lol, because now I have:
O_O No warnings, no errors, works with simple tests, looks rational. So this hinges on typing "implements Comparator"<correctly> ?
Randall Twede wrote:
sometimes i am glad i am still in java2 land. i get warnings now and then if i recompile, but i just ignore them
What's java2?