Forums |
 |
2-Dimensional arrays
One of the most obvious omissions from Java is 2-dimensional arrays. Any chance of these being added.This is also discussed along with other performance issues here:http://www.jot.fm/issues/issue_2003_09/column3 —
Re: Obfuscating rt.jar
While it would be possible to obfuscate just the internal classes and methods (e.g. stuff in the com.sun.* heirarchy), it would also make stack traces in bug reports less useful or more tedious to understand. A better idea would be to find a way of obtaining line number information (for those stack traces) without paying a memory penalty until (if) a stacktrace was actually requested. —
Also in Java Today |
 |
From StringTokenizer to Scanner
There is more than one way to parse text-based content. The Core Java Tech Tip From StringTokenizer to Scanner looks at the difference between using java.util.Scanner and java.util.StringTokenizer. The tip "demonstrates that rather than using StringTokenizer, it's better to use the split() function included in the String class, or move to other regular expression-based solutions such as Scanner."
Too many classes
Kode Vicious warns that "One of the biggest problems when people use an object-oriented language is that when they realize how easy it is to create yet another class, they do." His recommendation is to start by taking smaller bites out of your problem (which he argues is better accomplished with a scripting language). In his response to a question about valid input he suggests using a whitelist containing a list of input you accept rather than a blacklist. "Whitelists can be very restrictive but they have a distinct advantage over blacklists in that the only time you have to change a whitelist it to make it more permissive."
Java News Headlines |
 |
