On Tue, 6 Jul 2004, Dave Cramer wrote:
> Once possibility is to use Double.parseDouble(s).byteValue()
>
> so the code would become
>
> try
> {
> Byte.parseByte(s)
> }
Why bother with Byte.parseByte at all if you are going to fall back to the
double parsing anyway? As I mentioned earlier I think it is better to
throw an Exception rather than to silently alter the returned data.
Kris Jurka