JAVA包装类Character的使用
对于Character类使用了equals()和toLowerCase()方法。
/** * 对于Character类使用了equals()和toLowerCase()方法。 * @author HAN * */ public class CharacterApps { Character ch1=new Character('c'); Character ch2=new Character('C'); boolean result1=ch1.equals(ch2); char ch11=Character.toLowerCase(ch1); char ch12=Character.toLowerCase(ch2); Character objch11=new Character(ch11); Character objch12=new Character(ch12); boolean result2=objch11.equals(objch12); public CharacterApps(){ } }