Lab report Cover
Experiment content and steps familiar with Java development environment _1
1. Create a catalogue of "self-learning number EXP1"
2. Set up Src,bin directory under "Exp1"
3.javac, Java implementation in the "self-study number EXP1" directory
4. Submit a full screen running Java under command line in Linux or Windows or MacOS, and run the results with your own ID and other information
mkdir 20165306exp1
Create directories, then ' mkdir 20165314/src
, mkdir 20165314/bin
re src
-establish, bin
catalog.
javac -d bin src/Hello.java
run with and java -cp ./bin Hello
command compilation.
Familiarity with the Java development environment _2提交Linux或Windows或masOS环境中IDEA中调试设置条件断点的全屏,打上自己学号的水印。
Set breakpoints and step-up related knowledge points:
- Left-click on the line number where you want to set the breakpoint, and then click Undo Setting
- Run->debug Starting the Debug program
- Right-click the red circle that represents the breakpoint, and the pop-up breakpoint property box to set the condition
- Run Result: 11 4950
- Click the line number to set a breakpoint, such as Line 5th, to view the value of the variable, such as I=3,j=6,sum=6
Right-click the red circle to set the condition i==10
Familiar with the Java Development Environment _3 the topic is: "The implementation of the permutation number p (n,m) function, m,n from the command line input, and test (normal situation, abnormal situation, boundary conditions).
P (n,m) =n!/(N-M)!
Write the program and set the parameter value: 5 4
- Normal operation results
- Set-1-1, abnormal condition run result
- Set 4 5, abnormal condition run result
Boundary value: Set 0 0, abnormal condition run result
| step | time | percentage |
| ------: | :-------: | :--------- |
| Demand analysis |10 min |5%|
| design |30 min |16%|
| code implementation |75 min |40%|
| Test |30 min |16%|
| Analysis Summary |40 min |22%|
Experiment ExperienceThe test of my subject is the last lesson of the recursive knowledge, at first I will not use idea to set parameters, and then others taught me, which reflects the advantages of knot to learn
Experiment with familiarity with a Java development environment