maintest.java

来自「java的团队合作代码」· Java 代码 · 共 24 行

JAVA
24
字号
package com.jk.test;
import java.util.*;
public class MainTest {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Collection c = new ArrayList();//Collection 的子类
		Student_hua stu = null;
		for(int i=1;i<=30;i++){
			stu = new Student_hua();
			stu.setName("terry"+i);
			stu.setAge(32+i);
			stu.setGender((int)(Math.random()*3));
			c.add(stu);
		}
		NetClient_hua nc = new NetClient_hua();
		nc.send(c);
	}

}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?