摘要: byte tByte = 2; String str = Integer.toBinaryString(tByte); String tString = Integer.toBinaryString((tByte & 0xFF) + 0x100).substring(1); System.out.p 阅读全文
posted @ 2021-05-12 14:26 白玉神驹 阅读(1460) 评论(0) 推荐(0)
摘要: 数组转list 常用分为int[]类型,String[]类型和Integer[]类型 int[] arr 数组转 list List<Integer> listRes = Arrays.stream(arr).boxed().collect(Collectors.toList()); String[ 阅读全文
posted @ 2021-05-12 09:35 白玉神驹 阅读(2806) 评论(0) 推荐(0)