摘要:
package lei;public class Student { private String name; private int age; //无参数的构造方法 public Student() {//上方菜单code——Generate-constructor-select note Sys 阅读全文
posted @ 2019-10-30 13:44
cxycxycxy
阅读(790)
评论(0)
推荐(0)
摘要:
package lei;public class Yongfa_this2 { public static void main(String[] args) { Yongfa_this yong=new Yongfa_this(); yong.sey("孙悟空"); System.out.print 阅读全文
posted @ 2019-10-30 11:35
cxycxycxy
阅读(231)
评论(0)
推荐(0)
摘要:
package lei;public class Private_yongfa { String name; private int age;//固定写法 private boolean male;//boolean 是特殊的 public void setAge(int num) {//设置值,s 阅读全文
posted @ 2019-10-30 00:37
cxycxycxy
阅读(394)
评论(0)
推荐(0)
摘要:
package day02;public class Chengyuan_Jubu { String str;//成员变量可以不赋值 String str1; String str2; public static void main(String[] args) { } public void ge 阅读全文
posted @ 2019-10-29 22:39
cxycxycxy
阅读(803)
评论(0)
推荐(0)
摘要:
package test.day01;public class Diao_phone { public static void main(String[] args) { Phone newphone1=getphone();//调用getphone方法,返回值赋值给newphone1,他的类型是P 阅读全文
posted @ 2019-10-29 22:15
cxycxycxy
阅读(248)
评论(0)
推荐(0)
摘要:
package lei;public class Lei { String a1="成员变量a1";//成员变量 String a2="成员变量a2"; public void Student(){//成员方法 String name="名字"; int age=10; System.out.pri 阅读全文
posted @ 2019-10-29 11:36
cxycxycxy
阅读(861)
评论(0)
推荐(0)
摘要:
package method;public class Array { public static void main(String[] args){ int[] array01=new int[]{1,2,4,5,6,7}; int[] array02=method01(array01); for 阅读全文
posted @ 2019-10-28 18:35
cxycxycxy
阅读(517)
评论(0)
推荐(0)
摘要:
package test.day01;public class overload2 { public static void main(String[] args) { System.out.println(sum(30000000L,30000000L)); } //重载只需要对应传参 //与返回 阅读全文
posted @ 2019-10-27 23:35
cxycxycxy
阅读(174)
评论(0)
推荐(0)
摘要:
package test.day01;public class ShuZu { public static void main(String[] args){ //动态 String[] shuzu1=new String[5]; System.out.println(shuzu1[4]); //静 阅读全文
posted @ 2019-10-27 23:30
cxycxycxy
阅读(1040)
评论(0)
推荐(0)
浙公网安备 33010602011771号