企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
~~~ package io.a4; import java.io.*; public class Test { public static void main(String[] args) throws Exception { ByteArrayOutputStream zjszl = new ByteArrayOutputStream(); DataOutputStream sjl = new DataOutputStream(zjszl); long aa = 123456789; sjl.writeLong(aa); byte[] zjsz = zjszl.toByteArray(); ByteArrayInputStream srl = new ByteArrayInputStream(zjsz); DataInputStream sjsr = new DataInputStream(srl); long ss; ss = sjsr.readLong(); //dis.readLong(n); System.out.println("ss="+ss); } } ~~~ ![](https://box.kancloud.cn/b72c366b2f421d5ccc70bee7a119b100_238x91.png)