62,621
社区成员
发帖
与我相关
我的任务
分享
byte[] tem1 = new byte[9];
Socket sc = new Socket("143.41.0.161", 555);
OutputStream os = sc.getOutputStream();
InputStream is = sc.getInputStream();
DataOutputStream out = new DataOutputStream(os);
DataInputStream in = new DataInputStream(is);
out.write(tt);
in.read(tem1);
out.flush();
for (int v = 0; v < tem1.length; v++) {
int t;
t = tem1[v];
if (tem1[v] < 0)
t += 256;
System.out.print(Integer.toHexString(t));
ap1 += Integer.toHexString(t);
System.out.println(ad1);
package com.xiaoyong;
public class StringTest {
private String str = "01020d0c0t06070809";
public void output() {
System.out.println(str.toUpperCase());
}
public static void main(String[] args) {
new StringTest().output();
}
}