Indicates if the given character is a comma, the character used as header value separator. - Java java.lang

Java examples for java.lang:char

Description

Indicates if the given character is a comma, the character used as header value separator.

Demo Code


//package com.java2s;

public class Main {
    /**/*from   w  w w.  j  ava  2s  . c om*/
     * Indicates if the given character is a comma, the character used as header value separator.
     * 
     * @param character
     *            The character to test.
     * @return True if the given character is a comma.
     */
    public static boolean isComma(int character) {
        return (character == ',');
    }
}

Related Tutorials