is Octal Digit - Java java.lang

Java examples for java.lang:char

Description

is Octal Digit

Demo Code


//package com.java2s;

public class Main {
    public static void main(String[] argv) throws Exception {
        char c = 'a';
        System.out.println(isOctalDigit(c));
    }/*  www  .  ja  va2s . co m*/

    public static boolean isOctalDigit(char c) {
        return c >= '0' && c <= '7';
    }
}

Related Tutorials