摘要: //Tcp public class Test_IP_Client { //接受服务器端的数据,并显现出来 public static void main(String[] args) { try { Socket s = new Socket("127.0.0.1", 8888); InputSt 阅读全文
posted @ 2021-01-30 23:16 __sunshine 阅读(28) 评论(0) 推荐(0)
摘要: package oop.thread;import java.util.Date;public class TestInterrupt { //测试 线程退出的方式一 public static void main(String[] args) { MyThread thread = new MyT 阅读全文
posted @ 2021-01-30 22:41 __sunshine 阅读(18) 评论(0) 推荐(0)
摘要: //将 数字转成字符串Integer number = new Integer(88888);String s = number.toString();System.out.println(s);//将 int 类型的数字转换成字符串int i = 88888;String s1 = String. 阅读全文
posted @ 2021-01-30 16:05 __sunshine 阅读(186) 评论(0) 推荐(0)