- 博客(2)
- 资源 (2)
- 收藏
- 关注
原创 JAVA7的新特性之钻石操作符和加强的Switch语句
1. 钻石操作符(Diamond Operator )在你的IDE中,如果你使用的泛型,那么就会给出很多的提示。举个例子来看一下吧,如果你定义了一个Map类型的变量trades,同时该变量使用到了泛型。那么该变量的声明如下,Map> trades = new TreeMap> ();通过查看上面的代码可以很直观的看到,一个不是很友好的问题就是每次声明泛型变量的时必须左右两边都同时声
2013-03-27 11:01:19 3710
原创 Putty 中调用linux tree命令后出现乱码的解决方法
使用putty远程连接linux后,调用tree命令显示某一个目录的树状结构,但是命令执行完后在putty的控制台上显示有乱码。如下图所示后来发现是因为编码的问题,问题如图,于是就将Remote character set 设置成UTF-8后,再调用tree命令就可以显示正确了。最终显示的结果如下图所示,
2013-03-06 13:14:33 2093 1
Next Generation Java Testing TestNG
2015-10-08
OCA Java SE 7 Programmer I Certification Guide
2014-03-17
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人