20165227 "Java Programming" experiment one (familiar with Java Development environment) Experimental report

Source: Internet
Author: User

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:
    1. JVM, JRE, JDK installation location and differences;
    2. command line run JAVAC;JAVA;JAVAC-CP; JAVA-CP;
    3. The setting method and application of Path,classpath,sourcepath;
    4. Package management: package;import;javac-d;
    5. Eclipse (Netbeans) manages Java projects, debugging: breakpoints, stepping, etc.;
    6. Java basic syntax: type and type conversion; variables; operators; Process control, etc.;
    7. 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
    • Open Idea New Java project

    • Run code with Alt+Shift+F10 shortcut keys

    • 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.