Experiment with familiarity with a Java development environment

Source: Internet
Author: User

Lab report Cover

Experiment content and steps familiar with 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

  • mkdir 20165306exp1Create directories, then ' mkdir 20165314/src , mkdir 20165314/bin re src -establish, bin catalog.
  • javac -d bin src/Hello.javarun with and java -cp ./bin Hello command compilation.

    Familiarity with the Java development environment _2

    提交Linux或Windows或masOS环境中IDEA中调试设置条件断点的全屏,打上自己学号的水印。

    Set breakpoints and step-up related knowledge points:
  • Left-click on the line number where you want to set the breakpoint, and then click Undo Setting
  • Run->debug Starting the Debug program
  • Right-click the red circle that represents the breakpoint, and the pop-up breakpoint property box to set the condition
  • Run Result: 11 4950
  • Click the line number to set a breakpoint, such as Line 5th, to view the value of the variable, such as I=3,j=6,sum=6
  • Right-click the red circle to set the condition i==10

    Familiar with the Java Development Environment _3 the topic is: "The implementation of the permutation number p (n,m) function, m,n from the command line input, and test (normal situation, abnormal situation, boundary conditions).
    P (n,m) =n!/(N-M)!
    Write the program and set the parameter value: 5 4
  • Normal operation results
  • Set-1-1, abnormal condition run result
  • Set 4 5, abnormal condition run result
  • Boundary value: Set 0 0, abnormal condition run result

    | step | time | percentage |
    | ------: | :-------: | :--------- |
    | Demand analysis |10 min |5%|
    | design |30 min |16%|
    | code implementation |75 min |40%|
    | Test |30 min |16%|
    | Analysis Summary |40 min |22%|

    Experiment Experience

    The test of my subject is the last lesson of the recursive knowledge, at first I will not use idea to set parameters, and then others taught me, which reflects the advantages of knot to learn

Experiment with familiarity with a 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.