Experimental content:
1. Compile and run a simple Java program using the JDK 2. Edit, compile, run, and debug Java programs using Eclipse
Experimental process:
(i) Java program Development under command line
CD entry
mkdir Building a Directory
PWD View current work path
(ii) Development and commissioning of Java programs under Eclipse
Breakpoint Settings:
Practice:
(iii) Exercise (through
command LineAnd
EclipseImplemented in two ways,
the results of the two and the total number of questions after their own study number plus 1Is the number you want to complete, practice debugging under Eclipse)
Here Topic 5:
5. Realize the function of all prime numbers between the 1-n integers and test them.
Encounter Problems and workarounds:
It took a long time to find a place to set breakpoints: My Debug and Main debug sections are under Run
Experiment Harvest:
Note: when you have a package in your code, you must add the-d parameter when you compile your code with Javac, and you must prefix the name of the packet when you run the code.
Breakpoint Settings: Breakpoint Properties
Try to use shortcut keys to debug programs more efficiently
201,352,140,000 Sub-benefits (1)