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

Java examples for java.lang:char

Description

Indicates if the given character is a line feed.

Demo Code


//package com.java2s;

public class Main {
    /**/*from   w  ww  .  j  a  va  2  s  .  c om*/
     * Indicates if the given character is a line feed.
     * 
     * @param character
     *            The character to test.
     * @return True if the given character is a line feed.
     */
    public static boolean isLineFeed(int character) {
        return (character == 10);
    }
}

Related Tutorials