20145109 《Java实验报告1》
2016-04-10 09:22
519 查看
Experiment Ⅰ ——getting familiar with JDK (Linux + Eclipse)
Content
1.Compile and run easy Java programs using JDK;2.Edit, compile, run and debug in Eclipse.
Steps
Java in the terminal:
Running in the Idea:
Debug:
View variables at breakpoint:
Step into:
Step over:
Set breakpoint:
Problem & Solution
The demand is easy, while I had no idea about the way of encapsulation for the lack of experience. Our aim is to calculate all the prime from 1 to N, so it should be written as a method. So I new a class called 'Prime'. When I initialise the variable in the class, it turned out error. The assistant professor told me that all the operations should be written in Constructor or Method. Then I put the initialization in the Constructor. Problem solved!step | time | percentage |
---|---|---|
demand analyse | 0 | 0% |
design | 20min | 30.76% |
code | 20min | 30.76% |
test | 20min | 30.76% |
summarize | 5min | 7.69% |
相关文章推荐
- java容器源码
- java20天
- 《JAVA与模式》之模板方法模式
- java函数加载顺序
- Java 中获取资源(文件)的路径问题总结
- java中的自动类型转换和强制类型转换
- java中的变量使用规则。
- Struts2文件下载
- Spring3 报org.aopalliance.intercept.MethodInterceptor问题解决方法
- javaWeb学习记录:c3p0数据库连接池;DBUtils工具
- Java--各种有趣的图案输出
- Java注释和javadoc工具
- Android中的依赖问题(五种依赖、eclipse、AS、添加第三方库、jar)
- Java split用法
- Java中Split函数的用法技巧--简述
- 20145229吴姗珊 《Java程序设计》第6周学习总结
- 20145308刘昊阳 《Java程序设计》第6周学习总结
- Java split用法
- 欢迎使用CSDN-markdown编辑器
- Java基础:运行时异常和非运行时异常