JAVA study notes (5)-use Eclipse for program development


Hello everyone! I’m [Xiao Huang], because my last name is Huang, so I’m called Xiao Huang.
This blog is a little summary and record of your own learning and growth. If you are still interested in what I wrote, you can pay attention to my dynamics. We will learn together, grow and progress together.

The book is too thin to write as much as you want in your heart, but it is not as long as the arrival date.
The lower lips and teeth of the cup are too shallow and fragrant, but the taste is not the vicissitudes of life.
The rest of my life is too short. Drinking a glass of wine, I hope I can forget my sadness.
Since you can't look back in this life, go forward in a cool and romantic manner.
Even if the road ahead is thorny, at least there is me and gentleness.
♡♡♡♡ ♡♡♡♡♡♡ ♡♡♡♡ ♡♡♡♡♡♡


Creation time : September 17, 2020
Eclipse version : 2020-06


1. Eclipse project storage location (Workspace)

  • Workspace: Project storage location.
  • Use… ask again: Use this location by default next time

Insert picture description here
Insert picture description here

2. Create a java project:

2.1 Create a java project:

  • In the Eclipse menu bar, select 【File】--> 【New】-- >【Project】-- >【java Project】-- >【Next】

Insert picture description here
Insert picture description here

  • Enter the project name in Project name: and keep the rest as default.

Insert picture description here
Insert picture description here

2.2 Create a package (Package) under the java project:

  • Right-click on src and select 【New】-->【Package】.
  • Why create a package, because you need to put the class in the package.

Insert picture description here

  • Create a class in the package
  • Right-click the package you created, select [New] -> [Class]

Insert picture description here
Insert picture description here

Insert picture description here

  • Write the program in the class you just created:
  • Pay attention to save after writing【Ctrl + S】
  • Click to run【Run 】/【Ctrl + F11】

Insert picture description here


Friends who are passing by, if you think you can learn something , please give a thumbs up and let's go. Welcome to the big guys who are passing by to comment and correct your mistakes. Also welcome friends who have problems to comment and leave messages, private messages.

The attention of every small partner is my motivation to update my blog! ! !
Please search WeChat for [ Zaixiaxiaohuang ] article updates will be read as soon as possible!
Insert picture description here

Grasp the present, look to the future, come on!


Due to the limited level, there will inevitably be some inadequacies in the writing. I hope you all will give us your advice!

Guess you like

Origin blog.csdn.net/weixin_44519789/article/details/108651919