java常用常量类

Posted 悟能的师兄

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了java常用常量类相关的知识,希望对你有一定的参考价值。


public class StringConstant 

    private final static String ISO_8859_1 = "ISO-8859-1";
    private final static String GB2312 = "GB2312";
    private final static String UTF_8 = "UTF-8";

    public static final int INDEX_NOT_FOUND = -1;
    public static final char C_SPACE = ' ';
    public static final char C_TAB = '\\t';
    public static final char C_DOT = '.';
    public static final char C_SLASH = '/';
    public static final char C_BACKSLASH = '\\\\';
    public static final char C_CR = '\\r';
    public static final char C_LF = '\\n';
    public static final char C_UNDERLINE = '_';
    public static final char C_COMMA = ',';
    public static final char C_DELIM_START = '';
    public static final char C_DELIM_END = '';
    public static final char C_BRACKET_START = '[';
    public static final char C_BRACKET_END = ']';
    public static final char C_COLON = ':';
    public static final String SPACE = " ";
    public static final String TAB = "\\t";
    public static final String DOT = ".";
    public static final String DOUBLE_DOT = "..";
    public static final String SLASH = "/";
    public static final String BACKSLASH = "\\\\";
    public static final String EMPTY = "";
    public static final String NULL = "null";
    public static final String CR = "\\r";
    public static final String LF = "\\n";
    public static final String CRLF = "\\r\\n";
    public static final String UNDERLINE = "_";
    public static final String DASHED = "-";
    public static final String COMMA = ",";
    public static final String DELIM_START = "";
    public static final String DELIM_END = "";
    public static final String BRACKET_START = "[";
    public static final String BRACKET_END = "]";
    public static final String COLON = ":";
    public static final String html_NBSP = " ";
    public static final String HTML_AMP = "&";
    public static final String HTML_QUOTE = """;
    public static final String HTML_APOS = "'";
    public static final String HTML_LT = "<";
    public static final String HTML_GT = ">";
    public static final String EMPTY_JSON = "";


以上是关于java常用常量类的主要内容,如果未能解决你的问题,请参考以下文章

Java包装类学习

Java常用类

Java中String类字符串常量池字符串常用方法

String类

String类

String类