Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Java Zero Technology learns from Technical Manager 1. The first java program: Hello, Fan Bingbing

2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

Java Zero Technology learns from Technical Manager 1. The first java program: Hello, Fan Bingbing

1 Java introduction

2 install java environment JDK

3 install web environment tomcat

4 install the development tool Idea2017

5 write the first program, 'Hello, Fan Bingbing!'

1.Java introduction

Java is a tool, with java, you can write a program that can run out of a website: shopping, social networking, video sites, etc.; or develop app: live app, shopping app, WeChat Mini Programs, etc.; learned java programming, you can be a programmer, and many companies need such programmers. Beijing, Guangzhou and Shenzhen, junior programmers earn 5000-10000, intermediate programmers 10000-15000, senior programmers 15000 pounds, relative to other industries, the treatment is still very good; so, 0 basic rookies, or newcomers who have just entered the industry, learn java,come on happily from Brother Niu!

Install java environment JDK

Download jdk1.8 at:

Http://www.wmzhe.com/soft-30118.html

Double-click the icon [Coffee Icon] to start the installation:

Confirm all the way, automatically install to C:\ Program Files\ Java\ jdk1.8.0_131

After installation, start win+R key, cmd, enter: enter java-version

Prompt: JDK is installed successfully

Install web environment tomcat8.5

Download tomcat at http://www.pc6.com/softview/SoftView_528442.html

After downloading and decompressing, click the installation file [Big Cat icon] to install.

Default all the way, click next

Installed in this directory:

C:\ Program Files\ Apache Software Foundation\ Tomcat 8.5

When you are finished, open the browser and enter http://localhost:8080/ in the address bar

The content of the web page appears, indicating that the installation is successful

4 install the development tool Idea2017

Idea2017 is the most popular development tool for java programmers develop java program websites: shopping, social networking, video sites APP: live app, shopping app, WeChat Mini Programs Idea2017 is the most popular java development tool idea, with which you can easily write java programs The download address is: http://www.pc6.com/softview/SoftView_541051.html starts idea, and the registration page will appear: find this folder: C:\ Windows\ System32\ drivers\ etc to open the hosts file with WordPad [Administrator permissions] Add this sentence at the end: 0.0.0.0 account.jetbrains.com open the URL http://idea.lanyus.com/, click "get the registration code" below, and then copy the registration code to register

5 write the first program, 'Hello, Fan Bingbing!'

Open idea and click create new project to enter the next step. Select the first option on the left and click on the New on the right. Select the directory C:\ Program Files\ Java\ jdk1.8.0_131 where you just installed jdk, and click ok, and then the project SDK appears. Click next, check create project from template, select java Hello World, enter the project name java0101 and choose the path: C:\ java01\ 01 Click finish: finish automatically generates a java program here; in the program public static void main (…) Right-click above, select Run main below will appear Hello world, indicating that the program runs successfully; this is the program automatically generated by idea2017; in line 3-4, modify "hello World!" to "Hello, Fan Bingbing". Right-click on main and select "run main". It appears below. Hello, Fan Bingbing. The java program was written for the first time in my life, and it was given to Fan Bingbing!

Address: http://code6g.com

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report