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

Java examples for java.lang:char

Description

Indicates if the given character is a carriage return.

Demo Code


//package com.java2s;

public class Main {
    /**/*from   www .j  a  va  2 s .com*/
     * Indicates if the given character is a carriage return.
     * 
     * @param character
     *            The character to test.
     * @return True if the given character is a carriage return.
     */
    public static boolean isCarriageReturn(int character) {
        return (character == 13);
    }
}

Related Tutorials