- 博客(3)
- 收藏
- 关注
原创 2021-06-25数组动态初始化
public class Hello{ public static void main(String args[]){ int data[]=new int[3]; data[0]=11; data[1]=22; data[2]=33; for (int a=0;a < data.length;a++ ) { System.out.println(data[a]);...
2021-06-25 16:58:34
38
原创 2021-06-24
class Dog{ private String name; private String color; private int age; public Dog(){} public Dog(String name,String color,int age){ this.name=name; this.color=color; this.age=age; } public String getinfo...
2021-06-24 17:35:30
44
原创 简单java类
class Student{ private String name; private int age; private int xuehao; public String getInfo(){ return " 姓名"+name+"\t"+"年龄"+age+"\t"+"学号"+xuehao; } public Student(){} public Student(String name,int age,int xuehao){...
2021-06-21 21:21:58
60
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人