Java Lab report (experiment one)

Source: Internet
Author: User

Beijing Institute of Electronic Technology

Real Inspection report

Course: Mobile Platform Application development Practice class: 201592 Name: Souzenan No.: 20159207

Score: Instructor: Lou Jia Peng Experimental Date: 2015.9.28

Experiment level: Preview degree: Experiment time:

Instrument Group: Compulsory/Elective: Elective experiment number: 1

Lab Name: familiarity with the Java development environment

Experimental purposes and requirements:1. Use JDK compile, run simple Java procedures;

2. Edit, compile, run, and debug Java programs using Eclipse .           

Laboratory Equipment:

Name

Model

Number

Computer

X230

1

Experiment contents, steps and experience:

1, the command line under the Java program development

The function that needs to be implemented is: Enter the number + name, greet with Hello

2.MyEclipse Java program Development, debugging

3, through the command line and Eclipse two ways to achieve, their study number after the two and the total number of questions to take the results of the remainder plus 1 is their own to complete the problem number

Eclipse mode

Command line mode

So, I want to complete the question number is the third problem, that is, to achieve the Fibonacci sequence function, and test.

3. Realize Fibonacci sequence function and test.

I still do it in two ways.

Eclipse Mode:

Command line mode:

For debugging

Experimental summary

Problems encountered:

Do not know how Java captures and recognizes characters that are struck from the keyboard

The workaround:

Find the Scanner class by finding the JDK Help documentation, and learn how Scanner is used, namely Scanner reader=new Scanner (system.in);

Summary: This experiment is mainly to understand the development tools, proficiency in the use of software, I use the MyEclipse8.5 development platform, it is the core of eclipse, but the function is more perfect, there is in the implementation of Fibonacci sequence function when my algorithm should not be optimal, You can also design a better algorithm.



Java Lab report (experiment one)

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.