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

Source: Internet
Author: User

20155208 "Java Programming" experiment one (familiar with Java Development environment) experimental Report I. Experimental contents and steps (i) compiling and running a simple Java program using the JDK
    • Under the command line of the program development Open the "' windows cmd→ input CD Code command into the code directory, enter the" managed by "folder → input MD 20155202 set up a folder named after your own number → input CD 20155202 into the folder → input MD exp1 built "Experiment One" folder → input CD exp1 into "Experimental One" folder
(b) (compile, run Java program):
    • Edit the Java program using the vim editor → Compile and run at the command line:
(iii) Use idea to edit, compile, run, and debug Java programs
    • 1, the new class, enter the following code:
    • 2. Click the mouse on the left side of the line where you want to set a breakpoint, and a red dot appears. For example, set breakpoints as follows:
    • On the Run menu above find Debug ... Perform one-step debugging

The Common Debugging shortcut icon function is summarized as follows:

①step over (F8): The program executes a line down (if the current line has a method call, this method will be executed and returned to the next line)

②step into (F7): The program executes one line down. If the row has a custom method, run into a custom method (a method that does not enter the official class library)

③force Step into: Enter any method

④step out (SHIFT+F8): If you enter a method at debug time and feel that the method is not a problem, you can use StepOut to jump out of the method and return to the next line of statements where the method is being used. It is worth noting that the method has been executed.

⑤run to Cursor: Runs the program to the cursor.

(iv) Exercise: Achieve student performance management functions, and test.

"Requirements": implemented via command line and idea two, practice debugging under idea. The operation was successful as follows:

Experience and summary of experiment

The first Java experiment, let me have a further understanding of the language style of Java, but also learned their own brain to think about problems, which encountered a lot of problems, but also in the help of students to complete, feel the first experiment there is a lack of the next time will be more efforts.

Steps Time Consuming percentage
Demand analysis 3min 4%
Design 10min 13%
Code implementation 45min 42g
Test 5min 7%
Analysis Summary 10min 14%

20155208 "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.