Installation of Eclipse and sum of maximum sub-arrays

Source: Internet
Author: User

I'm installing eclipse. Since Eclipse is a Java-based lesson extension development platform, install the Java Development tools JDK (Java devolopment Dit) before installing Eclipse, and install the JDK to configure environment variables.

The first thing to download is the JDK. Download JDK for security purposes, as far as possible to download the Oracle official website, the official website address is: http://www.oracle.com/download requires user login, you can register for free and then can download.

After opening the official website, you will see the following screen, first place the cursor in the downloads location, find the Java for Developer on the page it displays and click on it.

After clicking, the following screen will appear:

Then click Downloads and find the following options at the bottom of the page:

Click on Enter to find the following, and select the version to download, click to enter

Finally, in which you find the version you need to download and install it.

Environment variables need to be configured after installing JDK.

The first is: System variable → new java_home variable, variable value fill in the JDK installation directory.

Followed by: System variables → find Path variable → edit

Enter%java_home%\bin;%java_home%\jre\bin at the end of the variable value;

System variables → new CLASSPATH variable

Variable values are filled in.; %java_home%\lib;%java_home%\lib\tools.jar (Note that there is a point at the front, absolutely cannot be missed)

System Variable Configuration complete

Verify that the configuration is running successfully cmd input java-version (there are spaces between Java and-version)

If the version information is displayed, the installation and configuration are successful.

Then download and install eclipse,:http://www.eclipse.org/

After the download just unzip the compressed file, open the Eclipse.exe can be used;

After the installation is complete, you can write a simple HelloWorld test.

Test data

Use Case number

Input data

Expected output data

Actual output data

Pass/No Pass

Evaluation

01

1, 2, 3, 4, 5
15 15 Pass Run correctly

02

-1, 2, 3,-4, 5
6 6 Pass Run correctly

03

-2, 5, 3,-6, 4
8 8 Pass Run correctly

04

82, 9,-10, 71,-16
152 152 Pass Run correctly

Code Run Results

Code Link: https://coding.net/u/Small_Clown/p/Homework/git/blob/master/MaxArraySub.md

Installation of Eclipse and sum of maximum sub-arrays

Related Article

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.