Write in front: Hello everyone, I am Fdog, from a small city in Inner Mongolia, currently studying in Taizhou. I am very grateful to have such a platform where I can share what I have learned and felt. I like programming, like code, like to be a programmer. Study hard and strive for a better life for loved ones after many years. QQ/WX: 2506897252 Welcome to communicate.


January 30, 2020 is a day in history. Today is the day the first Java program was run! All right, let’s cut the lyricism and get down to business. I recorded my first Java program and witnessed my strength day by day. @[TOC]


1. The first step in using Eclipse is to change the font first

If you want to write Java in Eclipse, change the font first

Don’t ask why, ask is to change!

2. Create the project first

Java advocates everything is object, I say everything first build the project! ! [insert picture description here] (img – blog. Csdnimg. Cn / 20200130194… = 500 x) File – New – Project

! [insert picture description here] (img – blog. Csdnimg. Cn / 20200130195… =500x)

Select the Java Project

! [insert picture description here] (img – blog. Csdnimg. Cn / 20200130195… =500x) enter the project name and click Finish.

! [insert picture description here] (img – blog. Csdnimg. Cn / 20200130195… =500x)

3. New classes

! [insert picture description here] (img – blog. Csdnimg. Cn / 20200130195… =500x) Package write Number, select the first check box below.

4. Start the code

package Number;
public class hello {
static String s1 ="Hello";
 public static void main(String[] args) {
  // TODO Auto-generated method stub
   String s2 ="java";
   String s3 ="I am a painted dog, and I will be crowned king."; System.out.println(s1); System.out.println(s2); System.out.println(s3); }}Copy the code

5. Run result

So far, the first Java has run successfully.

If there is a mistake, welcome to criticize, welcome to discuss. == every sentence: keep good heart, take a good road, cherish the most real emotion, feel the recent happiness, enjoy the most beautiful mood, any time circulation, time changes. = =