getBytes() method is deprecated. What xcan be used instead. Can anyone provide the clue?
posted 16 years ago
According to the 1.3 API: getBytes(int srcBegin, int srcEnd, byte dst, int dstBegin)
Deprecated. This method does not properly convert characters into bytes. As of JDK 1.1, the preferred way to do this is via the getBytes(String enc) method, which takes a character-encoding name, or the getBytes() method, which uses the platform's default encoding.
"JavaRanch, where the deer and the Certified play" - David O'Meara