20165227 "Java Programming" experiment one (familiar with Java Development environment) experimental Report I. Cover of experimental report
Course: Java Programming class: 1652 class Name: Zhu Yue Study No.: 20165227
Instructor: Lou Jia Peng Experiment Date: April 2, 2018
Experiment time: 13:45-15:25 Experiment serial number: experiment One
Lab name: Familiarity with the Java development environment
Experimental title: Implementation of Caesar's password and security reinforcement, and testing (normal, abnormal, boundary conditions)
Experimental content:
1. Compile and run a simple Java program using the JDK;
2. Use idea to edit, compile, run, and debug Java programs.
- Experimental requirements:
1. Students who do not have a Linux base are advised to start with the Linux basics (new version) Vim Editor course;
2. Complete the experiment, write the experimental report, pay attention to the results of the experiment report, the problems encountered (tool search, installation, use, program editing, debugging, running, etc.), solutions (empty methods such as "Check the network", "Ask classmates", "reading" and so on all get 0 points) and analysis (from which can get what revelation What are the gains, lessons, etc);
3. Report the time of your PSP (Personal software Process).
4. Copying is strictly prohibited.
- Experimental Knowledge Points:
- JVM, JRE, JDK installation location and differences;
- command line run JAVAC;JAVA;JAVAC-CP; JAVA-CP;
- The setting method and application of Path,classpath,sourcepath;
- Package management: package;import;javac-d;
- Eclipse (Netbeans) manages Java projects, debugging: breakpoints, stepping, etc.;
- Java basic syntax: type and type conversion; variables; operators; Process control, etc.;
- The use of the JDK help documentation.
Ii. Experimental Steps (i) Java program Development under command line
1. Open the terminal in the Linux virtual machine to do the following
2, to vim Hello.java
edit the code, and javac -d . Hello.java
compile the code, and finally java zy.Hello
run with the package code
(ii) idea under the Java Program development, debugging
- Set breakpoints, right-click directly to the left of the code
Shortcut keys for running breakpoints Alt+Shift+F9
; Continue down step to use Step into F7
and step overF8
Or the direct F9
shortcut key is finished running
- Conditional breakpoint:
Right-click on the breakpoint appears setting
Execute to conditional breakpoint from previous breakpoint through shortcut key F9
(c) Practice
- Requirements: Implementation of Caesar's password and security hardening, and testing (normal, abnormal, boundary conditions)
- Caesar Password: Encryption and decryption by moving the letters to a certain number of digits. All letters in the clear text are replaced redact after the alphabet is shifted backwards (or forwards) by a fixed number. The number of BITS is the encryption and decryption key of Caesar's password.
20165227 "Java Programming" experiment one (familiar with Java Development environment) Experimental report