How to use Eclipse

1. After installing Eclipse , double-click it to use it, and a Workspace working environment path selection will pop up first. You can save it by selecting the path to be saved.

       If you accidentally tick the "Set as default and don't ask" window below, after entering Eclipse, click on the top menu bar "Window"--"Preferences"--"General"--"Startup and Shutdown"--" Workspaces", check "Prompt for workspace on startup" to save, and the next time you log in to Eclipse, the selected window will pop up.

2. New project (project)

   Click "File"--"New"--"Project", select "Java Project"--"next", fill in "Project name"--"next"--"finish", it is created.

3. Create a new class file in src

Right-click on "src"--"New"--"class", fill in "name", tick the sentence "public static void main(String[] args)"--"finish", it will be created. . At this time, you can view the newly created class file in the folder bin under the path folder.

4. Finally, write the code to be run in the class file, save it, right-click " run as"--"java application" in the class file, and the result will be in the box below.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325471829&siteId=291194637