

|
 |
| Programming > Java Help > Re: True Intege... |
|
| << Topic |
< Post |
Post 14 of 28 Topic 16073 of 16192
|
Post > |
Topic >> |
Re: True Integer, Double
by RC <raymond.chui@[EMAIL PROTECTED]
>
May 13, 2008 at 10:07 AM
| Eric Sosman wrote:
>
> If that's what he was trying to say, he was mistaken.
> On Java 1.6.0_05-b13, `new Integer("1.0")' gives me
>
> Exception in thread "main" java.lang.NumberFormatException: For input
> string: "1.0"
>
> ... so I don't think his "NumberFormatException couldn't catch
> it" meant "No exception is thrown." (What it *did* mean is a
> mystery he's declined to elucidate.)
We are not allows to use 1.6.x, yet.
Currently all our projects MUST use 1.5.x
Thank Q for all of u.
P.S.
The reason I DON'T want to use
new Integer("1");
and
new Double("1.0");
is:
the text format sometime is
1295 1 38.23 39.26 41.10 43.82 47.50 45.29
The data starts at column 2 (3rd column)
But some time is
JOSNC 0393 29 14.17
The data starts at column 3(4th column), also the 1st column is a string.
There are more formats to come (U know those Fortran programmers during
70's). We have to clean up their mess, all into XML format.


|
28 Posts in Topic:
|
RC <raymond.chui@[EMAI |
2008-05-12 10:50:14 |
|
"Kenneth P. Turvey&q |
2008-05-12 15:00:58 |
|
ram@[EMAIL PROTECTED]
(S |
2008-05-12 15:02:32 |
|
Eric Sosman <Eric.Sosm |
2008-05-12 11:10:01 |
|
RC <raymond.chui@[EMAI |
2008-05-12 11:35:06 |
|
ram@[EMAIL PROTECTED]
(S |
2008-05-12 15:45:53 |
|
Eric Sosman <Eric.Sosm |
2008-05-12 12:10:08 |
|
"John B. Matthews&qu |
2008-05-12 13:54:51 |
|
Wojtek <nowhere@[EMAIL |
2008-05-12 18:08:19 |
|
Mark Space <markspace@ |
2008-05-12 13:25:36 |
|
Eric Sosman <Eric.Sosm |
2008-05-12 16:45:30 |
|
Mark Space <markspace@ |
2008-05-12 17:21:11 |
|
=?ISO-8859-15?Q?Arne_Vajh |
2008-05-12 20:48:21 |
|
RC <raymond.chui@[EMAI |
2008-05-13 10:07:35 |
|
Eric Sosman <Eric.Sosm |
2008-05-13 10:46:37 |
|
Lew <lew@[EMAIL PROTEC |
2008-05-13 19:39:58 |
|
Lew <lew@[EMAIL PROTEC |
2008-05-13 19:39:04 |
|
=?ISO-8859-15?Q?Arne_Vajh |
2008-05-14 20:13:01 |
|
Tim Smith <reply_in_gr |
2008-05-17 22:21:30 |
|
=?ISO-8859-15?Q?Arne_Vajh |
2008-05-12 18:41:08 |
|
"Arved Sandstrom&quo |
2008-05-12 19:56:14 |
|
RedGrittyBrick <RedGri |
2008-05-12 22:54:27 |
|
=?ISO-8859-1?Q?Arne_Vajh= |
2008-05-12 18:45:46 |
|
Patricia Shanahan <pat |
2008-05-12 17:06:00 |
|
=?ISO-8859-1?Q?Arne_Vajh= |
2008-05-12 20:45:35 |
|
Tom Anderson <twic@[EM |
2008-05-18 13:29:15 |
|
Tim Smith <reply_in_gr |
2008-05-18 15:24:30 |
|
Roedy Green <see_websi |
2008-05-12 20:28:27 |
|
Post A Reply:

|
|
|
|