2018年10月13日
摘要: 1.在同一个类中:创建的对象,不管成员的可见修饰符可以直接调用。package studentpackage;public class Student { public long id; prote... 阅读全文
posted @ 2018-10-13 18:48 蔡军帅 阅读(142) 评论(0) 推荐(0)
摘要: 1.在同一个类中:创建的对象,不管成员的可见修饰符可以直接调用。 package studentpackage; public class Student { public long id; protected String name; private char sex; int age; public String toString() { ... 阅读全文
posted @ 2018-10-13 18:48 蔡军帅 阅读(1260) 评论(0) 推荐(0)
摘要: 这是原来的 这是修改以后的 阅读全文
posted @ 2018-10-13 18:40 蔡军帅 阅读(421) 评论(0) 推荐(0)
摘要: 这是原来的class StaticDemo {static int x;int y;public static int getX() {return x;//静态方法中可以访问静态数据成员x}public sta... 阅读全文
posted @ 2018-10-13 18:40 蔡军帅 阅读(140) 评论(0) 推荐(0)
摘要: 我的CSDN:https://blog.csdn.net/qq_40875849 ... 阅读全文
posted @ 2018-10-13 18:27 蔡军帅 阅读(98) 评论(0) 推荐(0)
摘要: 我的CSDN:https://blog.csdn.net/qq_40875849 阅读全文
posted @ 2018-10-13 18:27 蔡军帅 阅读(113) 评论(0) 推荐(0)
摘要: package hello; public class digui { public static void main(String[] args) { // TODO Auto-generated method stub System.out.println(1+sum(2)); } public static int sum(int... 阅读全文
posted @ 2018-10-13 17:26 蔡军帅 阅读(474) 评论(0) 推荐(0)
摘要: package hello;public class digui { public static void main(String[] args) { // TODO Auto-generat... 阅读全文
posted @ 2018-10-13 17:26 蔡军帅 阅读(138) 评论(0) 推荐(0)
摘要: package hello;public class PeopleAndMoney { public static void main(String[] args) { // TODO Aut... 阅读全文
posted @ 2018-10-13 17:20 蔡军帅 阅读(100) 评论(0) 推荐(0)
摘要: package hello; public class PeopleAndMoney { public static void main(String[] args) { // TODO Auto-generated method stub double y=0.8; People zhang=new People(); ... 阅读全文
posted @ 2018-10-13 17:20 蔡军帅 阅读(631) 评论(0) 推荐(0)
摘要: package hello; public class TestTixing { public static void main(String[] args) { // TODO Auto-generated method stub Tixing t1=new Tixing(10,20,10); System.out.println... 阅读全文
posted @ 2018-10-13 16:39 蔡军帅 阅读(591) 评论(0) 推荐(0)
摘要: package hello;public class TestTixing { public static void main(String[] args) { // TODO Auto-g... 阅读全文
posted @ 2018-10-13 16:39 蔡军帅 阅读(115) 评论(0) 推荐(0)