环境配置 创建会话 public class CreateSession implements Watcher { private static ZooKeeper zookeeper; public static void main(String[] args) throws IOExceptio ...
分类:
编程语言 时间:
2016-08-28 19:30:03
阅读次数:
151
之前都是从各个模块开始看起,从底层开始看起。应该改变一下思路,从高往下看,站得高看得远。 一、Main函数 源码:contiki-release-2-7\platform\stm32test\contiki-main.c 主函数中,关于进程的操作: 先对进程进行初始化process_init()。 ...
分类:
系统相关 时间:
2016-08-28 19:21:56
阅读次数:
304
for循环 publicclassTestFor{ publicstaticvoid main(String args[]){ for(int i =0; i < 10; i++){ System.out.println(i); } } } <!--more--> publicclassTestFo ...
分类:
其他好文 时间:
2016-08-28 18:13:19
阅读次数:
101
数组的类型 数组的定义方法 一维数组的定义方法 一维数组的定义方法 classTest{ publicstaticvoid main(String arg []){ //数组的静态声明法 //int arr [] = {1,3,5,7,9}; //数组的动态声明法 int arr []=newint ...
分类:
编程语言 时间:
2016-08-28 18:11:21
阅读次数:
226
1、错误提示内容 2、ant脚本对应的内容 3、解决方案 方法(1) 进行下列步骤:Run -> External Tools -> External Tools Configurations dialog 在界面中选择jre选项 选择Run in Same JRE as workspace 全部完 ...
分类:
编程语言 时间:
2016-08-28 18:10:55
阅读次数:
152
整体代码部分: 解决方案: 父类Person类: 子类Chinese类: 性别Gender的枚举类: Main函数: 总结: 1.什么是继承? 继承,就是一个类可以使用另一个类的属性和方法(也就是另一个类的成员) 2.子类继承父类的符号 为冒号(:) 3.当new子类构造的时候,底层发生了什么? 图 ...
什么是异常 异常:中断了正常指令流的事件 异常:中断了正常指令流的事件 异常的分类 <!--more--> uncheck exception uncheck exception uncheck exception classTest{ publicstaticvoid main(String ar ...
分类:
编程语言 时间:
2016-08-28 17:53:40
阅读次数:
233
练习一:将学生的分数按照标准分为优,良,中,差级别。 publicclassTest01{ publicstaticvoid main(String args[]){ int score =80; if(score >85&& score <=100){ System.out.println("成绩 ...
分类:
其他好文 时间:
2016-08-28 17:52:49
阅读次数:
131
分支语句 <!--more--> <!--more--> if..else...结构(一) if..else...结构(一) publicclassTestIf{ publicstaticvoid main(String args []){ int i =6; if(i >5&& i <10){ S ...
分类:
其他好文 时间:
2016-08-28 17:50:35
阅读次数:
132
Java当中的运算符 要点一: int i = 3 / 2,请问 i 的值? publicclassTest{ publicstaticvoid main(String args[]){ int i =3/2; System.out.println(i); } } 要点二: i++与++i的区别? ...
分类:
其他好文 时间:
2016-08-28 17:48:12
阅读次数:
143