20165339 experiment a familiarity with the Java development environment

Source: Internet
Author: User

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

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.