Indicates if the given character is a space. - Java java.lang

Java examples for java.lang:char

Description

Indicates if the given character is a space.

Demo Code


//package com.java2s;

public class Main {
    /**/*from   w w  w  . jav  a 2  s. co  m*/
     * Indicates if the given character is a space.
     * 
     * @param character
     *            The character to test.
     * @return True if the given character is a space.
     */
    public static boolean isSpace(int character) {
        return (character == 32);
    }
}

Related Tutorials