Copy Array

Prerequisites

Development environment

  1. JDK 1.8 Downloads
  2. Eclipse Mars Download

In order to run the example; simply follow the below steps:

Step 1 Create Java Project

Launch Eclipse IDE; Create new Java Project by going to File -> New -> Others… -> Java Project. Choose any project name you want then click Finish.

Step 2 Create Java Class

Copy the code below to clipboard; Select src folder in your project; Press CTRL + V; Eclipse IDE will automatically create package & class file with the code that’s pasted from clipboard.

Step 3 Run the application

Right click to the class; select Run As -> Java Application.

Output