标签:read tostring exception nts 副本 get final tty start
public static ThreadLocal<String> threadLocal = new ThreadLocal<String>();
public static void main(String[] args) {
Object[] objects = new Object[]{1,2};
System.out.println(Arrays.toString(objects));
//
// for (int i = 0; i< 10 ;i++) {
//
// final int j= i ;
// new Thread(new Runnable() {
//
// @Override
// public void run() {
//
// threadLocal.set(j+"-----------"+Thread.currentThread().getId()+"-----"+threadLocal.hashCode());
// Thread.currentThread().getId();
// try {
// Thread.currentThread().sleep(1000);
// } catch (InterruptedException e) {
// // TODO Auto-generated catch block
// e.printStackTrace();
// }
// System.out.println(threadLocal.get()+"----------"+Thread.currentThread().getId()+"------"+"-----"+threadLocal.hashCode());
// }
// }).start();
// }
标签:read tostring exception nts 副本 get final tty start
原文地址:http://www.cnblogs.com/signheart/p/6606474.html