import java.util.ArrayList;import java.util.List;public class NoteBook {public static void main(String[] args) {// calc();System.out.println(Integer.toBinaryString(8));String sa = "00110012";char[] cc = sa.toCharArray();for (int i = 0; i < cc.length; i++) {int a = Integer.parseInt(cc[i]+"");System.out.println("cc==" + a);}List<Byte> byteList = new ArrayList<>();byte[] bytes = {1, 10, 100};for (int i = 0; i < bytes.length; i++) {byteList.add(bytes[i]);}byte result[] = new byte[bytes.length];for (int i = 0; i < byteList.size(); i++) {result[i] = byteList.get(i);}for (int i = 0; i < result.length; i++) {System.out.println("byte[" + i + "]=" + result[i]);}byte[] a1 = {(byte) 128};byte[] a2 = {2};byte[] a3 = {3};java.lang.String s = "-1020123qwe";byte[] ccc = concat(s.getBytes());System.out.println(new String(ccc));System.out.println(Byte.MAX_VALUE);}private static byte[] concat(byte[]... bytes) {List<Byte> list = new ArrayList<>();for (byte[] aByte : bytes) {for (int i = 0; i < aByte.length; i++) {list.add(aByte[i]);}}byte[] bb = new byte[list.size()];for (int i = 0; i < list.size(); i++) {bb[i] = list.get(i);}return bb;}/*** 时间、计算*/static void calc() {double loss = -80000;System.err.println("total amount==" + loss);int mouth = (2022 - 2020) * 12 - (12 - 9);System.err.println("total mouth==" + mouth);double average = loss / mouth;System.err.println("average mouth of loss ==" + average);//600 *60 =360}}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。