is Space Letter - Java java.lang

Java examples for java.lang:char

Description

is Space Letter

Demo Code


//package com.java2s;

public class Main {
    public static void main(String[] argv) throws Exception {
        char input = 'a';
        System.out.println(isSpaceLetter(input));
    }/* w  ww.  j  a  v a2s .  c o m*/

    public static boolean isSpaceLetter(char input) {
        return input == 8 || input == 9 || input == 10 || input == 13
                || input == 32 || input == 160;
    }
}

Related Tutorials