1.数组转List String[] arr = new String[]{"A", "B", "C"}; List list = Arrays.asList(arr); //返回固定大小,不能做add和remove等操作 2.数组转Set String[] arr= new String[]{"A", "B", "C"}; Set<String> set= new Hash…
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package test.util; /** * * @author Administrator */ public class StringUtil { public StringUtil() { } /** * 将指定byte数组以16进制的形式打印到控制台 * @param hint String…
1.需要用到的包 2.实例 实体类 people package com.shore.entity; /** * @author DSHORE/2019-4-19 * */ public class People { private int pid; private String pname; private int age; private String job; private double sal; public People() { } public People(int pid, St…