20165306 experiment a familiarity with the Java development environment

Source: Internet
Author: User
Tags greatest common divisor

Familiar lab report cover for Java development environment

Lab content and steps familiarity with the Java development Environment-1

1. Create a catalogue of "self-learning number EXP1"

2. Set up Src,bin directory under "Exp1"

3.javac, Java implementation in the "self-study number EXP1" directory

4. Submit a full screen running Java under command line in Linux or Windows or MacOS, and run the results with your own ID and other information

5. Code Submission Cloud

    • mkdir 20165306exp1Set up the directory, then cd 20165306exp1 enter into the directory, mkdir src and mkdir bin then build the src, Bin directory.

    • javac -d bin src/Exp1.javarun with and java Exp1 command compilation.

Code Cloud Link

Familiarity with the Java development environment-2

Submit the full screen of the debug settings conditional breakpoint in the Linux or Windows or Masos environment, and hit the watermark with your own number.

Set breakpoints and step-up related knowledge points:
    • Click with the mouse next to the line number where you want to set the breakpoint, and then click Undo Settings
    • Run->debug Starting the Debug program
    • A small row of arrows in the debug area below: From left to right
      -Step over executes the method directly to the next line
      -Step into Entry method commissioning
      -Force step into can enter any method
      -Step out jumps the method and returns to the next line of statements where the method is called (the method has been completed)

    • Right-click the red circle that represents the breakpoint, and the pop-up breakpoint property box to set the condition

Reference INTELLJ Idea Easy Tutorial

    • Enter Code code link

    • Run Result: 11 4950

    • Click the line number to set the breakpoint, such as line 6th

    • View variable values during debugging, such as I=3,j=6,sum=6

    • Right-click the red circle to set the condition i==99

Familiarity with the Java Development environment-3

The topic is: "To achieve the two number of greatest common divisor and least common multiple functions, the number of input from the command line, and test (normal situation, abnormal situation, boundary conditions)", submit their own link to the project Code Cloud link and run the results.

    • Enter Code code link

    • Run->edit configurations->program Arguments setting parameter values: 5306 2018

    • Normal operation results

    • Set 0 0, abnormal condition run result

    • Boundary value: Set "100000-100000" "50000-50000" to get incorrect results, "45000-45000" is accurate, then test "48000-48000" "47000-47000" is inaccurate, "46000-46000" accurate, "46500-46500" is inaccurate, then the boundary value is between 46000 and 46500.

Steps Time Consuming percentage
Demand analysis 15 minutes 6%
Design 120 minutes 48%
Code implementation 45 minutes 18%
Test 30 minutes 12%
Analysis Summary 40 minutes 16%
Experience

Through this experiment, I am familiar with the use of idea, the topic of the extraction also helped me to review the previous C language related knowledge. Before I was afraid of contact with new things, but slowly I began to find tutorials, download and install software myself, debugging, with just installed red Dragonfly software watermark also let me feel very novel, computer for me is not so scary, I think this is my biggest harvest. I hope I can grasp the knowledge more solid, and constantly give themselves positive psychological hint, enjoy the fingertips on the keyboard flying process.

20165306 experiment A familiar Java development environment

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.