1
摘要: Java NIO教程 Channel Channel是一个连接到数据源的通道。程序不能直接用Channel中的数据,必须让Channel与BtyeBuffer交互数据,才能使用Buffer中的数据。 我们用FileChannel作为引子,开始逐步的了解NIO中的重要一环——Channel FileC 阅读全文
posted @ 2020-03-30 17:20 萌哥-爱学习 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 1. 方案一:继承thread. 1 package com.example.demo; 2 3 4 5 //1. 方法1,继承thread类:Thread implements Runnable 6 package com.example.demo; 7 public class ThreadCr 阅读全文
posted @ 2020-03-30 14:59 萌哥-爱学习 阅读(285) 评论(0) 推荐(0) 编辑