上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 21 下一页
摘要: 接口定义 public interface Flyable { void fly(String s); } View Code 测试类 public class FlyableDemo { public static void main(String[] args) { //使用匿名内部类 useF 阅读全文
posted @ 2020-05-15 13:01 硬盘红了 阅读(175) 评论(0) 推荐(0) 编辑
摘要: 接口定义 public interface Eatable { void eat(); } View Code 接口实现类 public class EatableImp implements Eatable{ @Override public void eat() { System.out.pri 阅读全文
posted @ 2020-05-15 12:39 硬盘红了 阅读(434) 评论(0) 推荐(0) 编辑
摘要: public class LambdaDemo { public static void main(String[] args) { //正常实现一个多线程程序 MyRunnable mr = new MyRunnable(); Thread t = new Thread(mr); t.start( 阅读全文
posted @ 2020-05-15 12:10 硬盘红了 阅读(115) 评论(0) 推荐(0) 编辑
摘要: 客户端代码: public class ClientDemo { public static void main(String[] args) throws IOException { //创建客户端Scoket对象 Socket s= new Socket("192.168.50.76",4444 阅读全文
posted @ 2020-05-11 21:19 硬盘红了 阅读(335) 评论(0) 推荐(0) 编辑
摘要: 客户端代码: public class ClientDemo { public static void main(String[] args) throws IOException { //创建客户端Socket对象 Socket s = new Socket("192.168.50.76", 33 阅读全文
posted @ 2020-05-11 14:45 硬盘红了 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 客户端代码: public class ClientDemo { public static void main(String[] args) throws IOException { //创建客户端Socket对象 Socket s= new Socket("192.168.50.76",2222 阅读全文
posted @ 2020-05-09 20:03 硬盘红了 阅读(190) 评论(0) 推荐(0) 编辑
摘要: 客户端代码: public class ClientDemo { public static void main(String[] args) throws IOException { //创建客户端Socket对象 Socket s = new Socket("192.168.50.76",111 阅读全文
posted @ 2020-05-09 19:33 硬盘红了 阅读(281) 评论(0) 推荐(0) 编辑
摘要: 客户端代码: public class ClientDemo { public static void main(String[] args) throws IOException { //创建客户端Socket对象 Socket s= new Socket("192.168.50.76",1234 阅读全文
posted @ 2020-05-09 18:08 硬盘红了 阅读(241) 评论(0) 推荐(0) 编辑
摘要: 客户端代码: public class ClientDemo { public static void main(String[] args) throws IOException { //创建客户端Sokcet Socket s = new Socket("192.168.50.76", 1999 阅读全文
posted @ 2020-05-09 17:04 硬盘红了 阅读(273) 评论(0) 推荐(0) 编辑
摘要: 客户端代码: public class ClientDemo { public static void main(String[] args) throws IOException { //创建客户端的Socket对象 Socket s = new Socket("192.168.50.76",12 阅读全文
posted @ 2020-05-07 21:05 硬盘红了 阅读(263) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 21 下一页