On Sat, 21 Jun 2008 15:41:02 +0200, adam <> wrote,
quoted or indirectly quoted someone who said :
>String s = '\n';
>Integer i = Integer.parseInt(s); // i should be 10
if you simply want the 10, there is no need to parse, namely convert a
string a character digits to binary. It is already in binary.
parseInt wants something like this:
>String s = "10";
>Integer i = Integer.parseInt(s); // i should be 10
Just do
int lf = '\n';
--
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com