04 2014 档案

摘要:本教程将Java8的新特新逐一列出,并将使用简单的代码示例来指导你如何使用默认接口方法,lambda表达式,方法引用以及多重Annotation,之后你将会学到最新的API上的改进,比如流,函数式接口,Map以及全新的日期API “Java is still not dead—and people ... 阅读全文
posted @ 2014-04-27 11:06 Birding 阅读(3654) 评论(0) 推荐(0) 编辑
摘要:由于这三种数据类型都是为了创建类层次结构的顶层构架,且用法有些许相似之处,这里简单区分一下: 接口: 接口用interface关键字定义, 名字一般使用-able形式的形容词。 接口通常定义抽象方法和常量,不能定义实例方法。 接口和抽象类一样,不能通过new实例化。但是可以... 阅读全文
posted @ 2014-04-23 18:04 Birding 阅读(1651) 评论(0) 推荐(0) 编辑
摘要:1. 确定Linux主机已经开启了ssh功能。 1.1--确认sshserver是否启动ps -e |grep ssh如果只有ssh-agent那ssh-server还没有启动,需要/etc/init.d/ssh start,如果看到sshd那说明ssh-server已经启动了1.2--开启ssh... 阅读全文
posted @ 2014-04-22 17:04 Birding 阅读(7779) 评论(0) 推荐(0) 编辑
摘要:我用的是64位的windows7旗舰版,jdk1.7 64位机器上可以同时运行32位和64位的Eclipse,但是电脑中必须有相应的jdk。Eclipse虽然不需要安装,但是在启动时会检查系统中固定文件夹下是否有合适的jre。例如32位Eclipse会检查 C:/program files(x8... 阅读全文
posted @ 2014-04-15 20:23 Birding 阅读(4944) 评论(0) 推荐(0) 编辑
摘要:刚学习Java时第一个接触的method就是System.out.println() 方法。但是最近在使用它输出一些变量时出现了我不理解的现象,首先上代码: 1 /* 2 * 3 * using method System.out.println/print 4 * 5 * 6 */ 7 c... 阅读全文
posted @ 2014-04-14 17:15 Birding 阅读(6129) 评论(0) 推荐(0) 编辑
摘要:1 /* 2 * 3 * test the accuracy change of conversion from float to dobule 4 * 5 */ 6 public class TestFloat{ 7 8 public static void main(String[] args){ 9 float f1 = 2.2f;10 System.out.printf("before conversion float1 : %10.9f \n" , f1);11 float f3 = f1;1... 阅读全文
posted @ 2014-04-12 23:55 Birding 阅读(859) 评论(0) 推荐(1) 编辑
摘要:在首次登陆伪终端时需要设置伪终端用户密码,否者无法再伪终端中使用root用户。伪终端的表示不知道是否对,请大神纠正。 阅读全文
posted @ 2014-04-12 20:09 Birding 阅读(173) 评论(0) 推荐(0) 编辑
摘要:1 #include 2 using namespace std; 3 struct struct1{ 4 /* 5 struct1(){ 6 cout<<"this is output by struct1 !"; 7 } 8 if add this code block , such errors like 'you must initlizer data number of struct1 9 10 by constructor in g++98' will occor in compile time,11 */12 ... 阅读全文
posted @ 2014-04-12 12:41 Birding 阅读(2670) 评论(0) 推荐(0) 编辑
摘要:#include using namespace std;class class1 { public: class1(){ } class1(int i ){ } void show(){ coutshow(); return 0;} 总结一下:1. 当使用类的无参构造函数来实例化对象时,... 阅读全文
posted @ 2014-04-12 12:40 Birding 阅读(528) 评论(0) 推荐(0) 编辑
摘要:1 #include 2 using namespace std; 3 struct struct1{ 4 int data1 ; 5 double data2 ; 6 struct1(){ 7 (*this).data1 = data1 ; 8 (*this).data2 = data2 ; 9 coutshowClass2();74 /* test struct inherit class */75 //struct4 onestruct4 ;76 //onestruct4.showCla... 阅读全文
posted @ 2014-04-11 23:53 Birding 阅读(981) 评论(1) 推荐(0) 编辑

点击右上角即可分享
微信分享提示