is char a Digit - Android java.lang

Android examples for java.lang:Character

Description

is char a Digit

Demo Code


//package com.java2s;

public class Main {

    private static boolean isDigit(char c) {
        return (c >= '0' && c <= '9');
    }/*from  w  w  w.  ja v  a 2  s  . co m*/
}

Related Tutorials