i must say all characters except from 0-9/numbers should be invalid.
Type: Posts; User: javarum
i must say all characters except from 0-9/numbers should be invalid.
how can i declare that the value entered is invalid? it now can say ODD, NEGATIVE, EVEN, ZERO
import java.io.*;
public class A
{
public static void main (String arum[])throws IOException{...
hmmm.. i use this?
a=Integer.valueOf(String);
i cant help myself...
import java.io.*;
public class A
{
public static void main (String arum[])throws IOException{
BufferedReader tag=new BufferedReader (new InputStreamReader(System.in));