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

What are the skills for JAVA beginners?

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

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

This article introduces the relevant knowledge of "JAVA beginner skills." In the actual case operation process, many people will encounter such difficulties. Next, let Xiaobian lead you to learn how to deal with these situations! I hope you can read carefully and learn something!

Tip 1: Establish empty projects for JAVA programming;

When programming *** first establish an empty project, and then in this empty project, edit your own JAVA program; in fact, this is a good habit, you can establish your own package in this project, you edit the source program, according to the different functions were put into different packages; so that you learn JAVA for a long time, you have a package of your own, which is very convenient for you to learn or check the relevant code later.

The method of creating empty projects, perhaps everyone knows, but here I am still wordy: ):

In JCRETOR's menu order, it is created as follows:

File??> New??> Project??> EmptyProject;

Ha, it's actually very simple! I wish you have your own library as soon as possible!

Tip 2: Jcretor provides good support for JDK help documentation;

Jcretor gives you instant access to JDK help documentation! And this function can be realized directly in the Jcreator editing window display web pages, without having to open any browser to browse. (I like this feature of Jcreator very much. As far as I know, Eclipse does not seem to provide this function.) Ha, after saying this for so long, I believe everyone will ask, how do you use this function? OK! Don't worry, you'll soon master this skill too.

I don't know if you remember that after we installed Jcreator, when we ran Jcreator *** times, the system asked you to specify the installation path of JDK; in fact, if you remember, after setting up the installation path of JDK, you will also be asked to provide a DOCS path. Ha, yes, that's what I want! Let me show you how to set this path:

First, download the JDK documentation from SUN's website.

Second, create a folder called docs in the JDK installation directory (e.g., my installation directory is D:j2sdk1.4.2_06)

Then extract the downloaded JDK documents to the folder just created. After extracting, select the directory where the JDK documents are located when installing Jcretors.(Note: Make sure that there is no docs folder under the docs folder.) When you start Jcreator after setting it up, will you find any changes in your Jcreator? Ha, actually there is, if you don't believe me, look at the Help drop-down menu in the Jcreator menu bar and see if there is something extra? Hehe…Is there an extra menu item "JDK Help Ctrl+F1"? If so, congratulations, configuration successfully pulled! Here I'll show you how to use this feature;

Once again, is to use Jcretor to play the role of JDK help documentation pull!

That's the point, OK, let me tell you how to use this feature:

When you write programs in Jcreator or look at other people's original code, you will definitely encounter unfamiliar or unknown classes or methods. At this time, you use the mouse to select the class name or method name you want to query, and then click JDK Help under the Help menu in the Jcretor menu bar. At this time, you will find that the information you want to query is immediately displayed in the form of web pages in Jcreator! Ha ha...... is not found very simple, is not that can be compared with the JDK CHM format documents! Ha, it's that simple!

Tip 3: This tip seems to be a bit similar to Tip 2, which is to realize that web files are displayed directly in the Jcreator editing window without the trouble of opening other browser tools.

In fact, this feature is mainly for the convenience of writing JAVA APPLET Mini programs programmers. When writing an APPLET program, always through the Web page to observe the results of the program, then use Jcretor to write an HTML original file and save! At this time, you will find that the corresponding file name will appear in the File View window on the far left of the Jcreator editing window. Select this file, right-click and click the View in Browser menu item. Soon, the HTML file you selected will be displayed in Jcretor.

"JAVA beginner's skills what" content is introduced here, thank you for reading. If you want to know more about industry-related knowledge, you can pay attention to the website. Xiaobian will output more high-quality practical articles for everyone!

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

Development

Wechat

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

12
Report