Android examples for java.lang:Character
is character Alpha Numeric
/*/*from w w w. j av a2 s. c o m*/ ******************************************************************************* * Copyright (C) 2009-2010, International Business Machines Corporation and * * others. All Rights Reserved. * ******************************************************************************* */ //package com.java2s; public class Main { public static boolean isAlphaNumeric(char c) { return isAlpha(c) || isNumeric(c); } public static boolean isAlpha(char c) { return (c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z'); } public static boolean isNumeric(char c) { return (c >= '0' && c <= '9'); } }