Timeline for Why doesn't Java String have static string manipulation methods?
Current License: CC BY-SA 3.0
5 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Dec 12, 2013 at 16:25 | comment | added | jmoreno | @adtc: because it's not a basic feature of the language to do it via a static class. Starting from that premise, there's a lot of reasons not to do so - unnecessary code/code bloat, duplicate functionality, cost of development/maintenance. | |
| Dec 12, 2013 at 11:09 | comment | added | Konrad Morawski | As of now, you do have String.format (static), but you can't do "something %s".format(id). | |
| Dec 12, 2013 at 8:01 | history | edited | gnat | CC BY-SA 3.0 | typo corrected |
| Dec 12, 2013 at 7:59 | comment | added | ADTC | Good point, although more of a comment than an answer. But even given that, why do we have to depend on an external library or home-brewed classes when such a basic feature can be made part of standard Java? | |
| Dec 12, 2013 at 7:08 | history | answered | jmoreno | CC BY-SA 3.0 |