public class CollectionDemo6 {
@SuppressWarnings({ "unchecked", "rawtypes" })
public static void main(String[] args) {
// 创建User对象
User u1 = new User("关羽", 18);
User u2 = new User("赵云", 28);
User u3 = new User("张飞", 38);
User u4 = new User("吕布", 8);
User u5 = new User("貂蝉", 16);