Experiment with familiarity with a Java development environment 1
- 1. Using the
mkdir 20165339exp1
build directory
2. Use mkdir 20165339exp1/bin
and mkdir 20165339exp1/src
build src and bin directories under 20165339EXP1
- 3.
vim Hello.java
Create a source file using the SRC directory
4. Use the javac -d bin src/Hello.java
compile source file and place the class file in the Bin directory. Use java -cp ./bin Hello
run.
Familiarity with the Java Development Environment 2
- Create a new project after installing the idea and configure the JDK to create the class file in the SRC directory
- Input code
- After setting a breakpoint, click menu "run"->"debug..." Debug Java program.
The value of sum is not 11
- The value of sum after one F8 is changed to 11
- Set conditional breakpoint, right-click on line 9th, enter i==50
Familiarity with the Java development Environment 3
First, the Stu class.
Followed by the Main method
Experiment with familiarity with a Java development environment 1
- 1. Using the
mkdir 20165339exp1
build directory
2. Use mkdir 20165339exp1/bin
and mkdir 20165339exp1/src
build src and bin directories under 20165339EXP1
- 3.
vim Hello.java
Create a source file using the SRC directory
4. Use the javac -d bin src/Hello.java
compile source file and place the class file in the Bin directory. Use java -cp ./bin Hello
run.
Familiarity with the Java Development Environment 2
- Create a new project after installing the idea and configure the JDK to create the class file in the SRC directory
- Input code
- After setting a breakpoint, click menu "run"->"debug..." Debug Java program.
The value of sum is not 11
- The value of sum after one F8 is changed to 11
- Set conditional breakpoint, right-click on line 9th, enter i==50
Familiarity with the Java development Environment 3
First, the Stu class.
Followed by the Main method
20165339 experiment a familiarity with the Java development environment