So what kind of programmer are you? What do you develop? These questions are essential before making any advise.
So what kind of programmer are you? What do you develop? These questions are essential before making any advise.
Secondly I don't mean to criticize Java. By calling it a toy language, I was simply referring to the fact that Java tends to make writing bad code difficult, and in doing this takes away some of the flexibility and power that you tend to associate with other languages.
I mean
while (str++) str = (str) + 1;
becomes
for (int i = 0; i < sb.length (); i++) sb.setCharAt (i, sb.charAt (i) + 1); // and relevant casting
While the above piece of Java code can be improved and condensed (for instance, by calling getChars and iterating through them* and then creating a new String - would be slow however), I think you get the point.