U
Ulf Meinhardt
As far as I heard Sun has finally implemented something like a String.inNumeric()
function in Java 1.6 (To detect if a string is numeric).
Is his true?
If not: Is there another way to find this out WITHOUT a try catch clause like
public boolean isInteger( String input ) {
try{
Integer.parseInt( input );
return true; }
catch( Exception ) {
return false; } }
I would appreciate a one-liner.
Ulf
function in Java 1.6 (To detect if a string is numeric).
Is his true?
If not: Is there another way to find this out WITHOUT a try catch clause like
public boolean isInteger( String input ) {
try{
Integer.parseInt( input );
return true; }
catch( Exception ) {
return false; } }
I would appreciate a one-liner.
Ulf