摘要:
package FacePro; public class Ch01 { //定义类的属性 String name; int age; //类方法 void无返回值 public void sleep(){ System.out.println("正在睡觉"); } //类方法 public voi 阅读全文
摘要:
//append 字符串拼接的方法 StringBuffer stringBuffer = new StringBuffer("我爱中国!"); StringBuffer stringBuffer2 = stringBuffer.append("我爱故乡!"); System.out.println(stringBuffer2); ... 阅读全文