- 博客(7)
- 收藏
- 关注
原创 修改static中成员变量的值
class person{ String name; int age; static String country; public person(){} public person(String name,int age){ this.name=name; this.age=age; }
2016-06-13 18:55:07 3933
原创 a+b用getA(xx)方法
import java.util.Scanner;放在所有类的开头 class aaa{ /*public int aaa(int a,int b){ return a+b; } */ public int a; public int b; public int getA(){ return a; } public int getB(){ re
2016-06-13 18:47:55 560
原创 static方法成员
class person{ String name; int age; static String country; public person(){} public person(String name,int age){ this.name=name; this.age=age; } p
2016-06-11 21:41:54 208
原创 手机类
class shouji{ public String brand; public int price; public String color; public String getBrand() { return brand; } public void setBrand(String brand){ t his.bran
2016-06-08 09:42:42 294
原创 2016-6-8 this指针用法
class Student { public String name; private int age; public String getName(){ return name; } public void setName(String name){ this.name=name; } public int getAge(){ re
2016-06-08 08:59:35 155
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人