摘要:
public class ByteArrayTest { public static void main(String[] args) throws IOException { read(write()); } //read public static void read(byte[] b) throws IOException{ ... 阅读全文
摘要:
1.先看下四个静态变量 The system-dependent path-separator character, represented as a string for convenience. The system-dependent path-separator character. The 阅读全文
摘要:
public class MulitThreadShareData { public static void main(String[] args) { final ShareData1 data1 = new ShareData1(); new Thread(new Runnable() { public void ru... 阅读全文
摘要:
为了凑字,把oracle文档里介绍ThreadLocal抄过来 This class provides thread-local variables. These variables differ from their normal counterparts in that each thread 阅读全文
摘要:
(示例都是网上视频的) 假如两个线程同时调用一个方法输出字符串 输出: this is testokokokokokokthis is testokokokokokokthis is testokokothis is testkokokoktokokokokokokhis is testokokok 阅读全文