0
[SOLVED] Write the code to check whether the given input(0-9) is a numeric value or not.
we are not allowed to use two things. 1) int a; if((a>=0)&&(a<=9)) System.out.print("valid number"); 2) We are also not allowed to use the ASCII value . Avoiding these two things, we have to write the code.
7 odpowiedzi
+ 2
isn't this just basic regex usage?
0
hinanawi can u plz elaborate
0
hinanawi
Thank you .
But how will i implent it in java code.
0
hinanawi
Thank you