Java中常用的方法:
length():获取字符串的长度;
equal():比较两个字符串;
toString():返回对象的字符串表示;
toLowerCase():转换为小写字母;
toUpperCase():转换为大写字母;
concat():字符串拼接;
isEmpty():判断当前字符串是否为空字符串;
replace(char old,char new):替换功能,把旧的字符换成新的字符;
split(String regex):分割字符串;
trim():去除字符串空格;
sort():排序。
Java中常用的接口:
Map、Collection、Set、List、Runnable、Serializable、Comparable
Java中常用的类:
Object、String、System、Exception、Thread、Date、HashMap、HashSet、ArryList、Vector(Vector速度上跟ArrayList差不多,但它是线程安全的)
Java中常用的集合:
Map、Collection、Set、List、Vector
Java中常用的包:
java.lang.*;
java.io.*;
java.util.*;
java.sql.*;
java.math.*
length():获取字符串的长度;
equal():比较两个字符串;
toString():返回对象的字符串表示;
toLowerCase():转换为小写字母;
toUpperCase():转换为大写字母;
concat():字符串拼接;
isEmpty():判断当前字符串是否为空字符串;
replace(char old,char new):替换功能,把旧的字符换成新的字符;
split(String regex):分割字符串;
trim():去除字符串空格;
sort():排序。
Java中常用的接口:
Map、Collection、Set、List、Runnable、Serializable、Comparable
Java中常用的类:
Object、String、System、Exception、Thread、Date、HashMap、HashSet、ArryList、Vector(Vector速度上跟ArrayList差不多,但它是线程安全的)
Java中常用的集合:
Map、Collection、Set、List、Vector
Java中常用的包:
java.lang.*;
java.io.*;
java.util.*;
java.sql.*;
java.math.*