Comment Re:Why Support Java At All? (Score 1) 264
Why would I want to do that in Java? I'd just use a TreeSet and have the objects implement the Comparable interface.
C/C++ is faster than Java but having to re-invent the wheel all the time is what makes me prefer Java. Another good example is loading a configuration file. In Java I just create Properties object with a file path and I've got access to a configuration file. In C++ you have to mess about with streams, write your own string parser and then create a map to store everything.
C/C++ is faster than Java but having to re-invent the wheel all the time is what makes me prefer Java. Another good example is loading a configuration file. In Java I just create Properties object with a file path and I've got access to a configuration file. In C++ you have to mess about with streams, write your own string parser and then create a map to store everything.