Java Diary: Learning Java one year experience 4

Source: Internet
Author: User

March 27, 2005 clear in dormitory Building, No. 16th, Beijing Jiaotong University

This morning more happy, took part in a photographic contest last year, sent out the work has been no news, has been thought to be a dead end, and gradually forgotten. Yesterday evening suddenly received news, said the work won the first prize, told me this morning to accept the prize. Although it is only a small game in the school, and prizes are only a set of books, but there is a feeling of excitement. In fact, write the program is also similar, when you see their own written program is used by others, even if only one person using your program, you will have a sense of excitement. By comparison, your achievements have been affirmed by others.

Oh, do not want to be in the diary to reason. My classmate read my diary a few days ago, said that I want a teacher in lectures, always with some kind of tone in the sermon, do not know how everyone's feeling. Actually, really, I just write out the feelings of my heart, do not want to add any modification to show in my blog. Well, let's talk about what kind of development environment to use today.

For beginners, I strongly suggest you start with Notepad+jdk+console. But to be honest, last year when I began to learn, Notepad used two days to get tired of, followed by UltraEdit, mainly syntax highlighting and line number of problems, they can easily help you detect errors. To be serious, you must learn to compile Java programs at the command line so that you can better understand the entire process from writing code to compiling to debugging to running.

Many people have started with JBuilder, but this integrated environment will make you lose the tools to learn many things. For example, when learning graphical interface, with JBuilder is very convenient, drag a few controls, immediately can automatically generate code, but when the interface problems, if you do not write your own graphics interface experience, it is not easy to find the wrong. To give a simpler example, many students have done the Web page, but asked them what to do, the general answer is FrontPage or Dreamweaver, admittedly, now another line to write HTML code is not realistic, but with the FP or DW development, In particular, the early version, sometimes some inexplicable errors, this time, understand the code can be directly from the code to solve, if the HTML is not Greek, I am afraid to spend a long time, sometimes even can not solve.

Once someone asked me the main method of the problem, public static void main (string[] args), this sentence, estimated beginner, especially not to learn the CPP, the line of code depressed for a long time, always confused, in fact, I was like this. Explain it directly according to what the teacher said in class. Explain to the end I was also confused, and then wrote a piece of code to them, told them that this statement is the execution of an entry, args is a parameter, just like copy a.txt b.txt so, each string is a parameter, so the basic explanation. So, starting from the command line, you can understand the lower-level structure of the program, so that when problems arise, you can also better solve.

When you are familiar with Java,javac and other commands, it is estimated that your program is gradually becoming longer, at this time, you can choose other tools. Of course, if you already have feelings for Ue+jdk+console, and want to continue to use, I do not object. In fact, I do not have much experience in this area, I also from the beginning of this winter holiday to use. Used a few, simple to introduce you.

The earliest use is JCreator, originally wanted to use JBuilder, but the winter holiday in the home, my beloved computer is 6 years ago, although the upgrade several times, but the running JB is still very problematic, so chose JC. JC as a lightweight development platform, feel good to use, the interface is relatively simple, easy to get started, more suitable for the first contact with these development tools. However, the function is less, the use of the back of the graphical interface and input and output when it feels a little inconvenient. Later back to school, download the JDK5.0, inside the bundle of NetBeans, try to use, its biggest benefit is free, estimated more suitable for the company to use, after all, the company in the face of copyright issues more attention, especially large companies, or easy to be caught on the handle. And NB has Chinese version, the Chinese interface will make your entry become very simple, other functions are relatively perfect, can be suitable for most of the development of J2SE. But there is a bad thing is that NB is written in Java, so the execution speed is relatively slow, in some relatively backward machines, the estimated will be more obvious.

I am now using the Eclipse3.0, mainly in the graphical interface development when SWT is better, good-looking and faster than AWT and swing, so always use, all kinds of settings are more humane, feel good, the latest version seems to have no culture. However, because the EP is only a platform, all the development in the form of plug-ins exist, so after the installation of Java, but also to configure other. If your e-text is not good, it is estimated to be a little bit of thought. As for the best development tool JBuilder, I have never used it. I used to use a few times in class, I feel too much of the resources, so it has not been installed. Since there is no use of experience, also dare not jump to comment.

The above is the development tool that I used, if you are veteran, estimate this article to your function basically is zero. However, as a novice, I have for these things for a long time to choose, so it is estimated that the novice still has some help. Select the tool, the next should be to write code, I will put some of my experience here, but also welcome criticism and advice, and common learning.

Oh, the dormitory to lights out, tomorrow to continue it.

。。。 adjourned


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.