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