Whether it is in the book, or write their own, you have to write hard, which is what you say "more Knock code", only their own to write more, to find a variety of problems. Many online resources, suitable for beginners. can also buy a book, here you recommend a <java core technology, but also more suitable for beginners.
Don't be misled by the word ' knock ', make sure you do it before you hit it, the process of thinking is important, ' knocking ' just turns your ideas into a programming language.
Suggest to find a book that can be called classics, calm down to look carefully, think. After reading a chapter, the program of this chapter to do a bit, do not have a thought on the code, very bad habits, you can write on the paper to draw, the idea of a clear and then knock code.
In short, the key: Mind, hand, pen, paper, the last is the computer ...
More knock code, to knock on the meaning, and should not be no matter 3,721 to write the number, but to find that valuable code, and on their own understanding of the basis, if it is just according to the source code knocking, even if the knock of more is no use. There is, in the learning process, especially in learning a new language, you can first find a general (according to their own difficulty) example, you can follow the knock again, and then on the basis of understanding, I write again, many people use this method of learning, you might as well try!
' Knock '--beat: It is the keyboard that beats you; it means to be more hands-on; to avoid the ills of ' above his business '; "Practice is the only way to test truth."
' Knocking '------------to refine your code, to streamline your code, not to say that you solved a problem with code to indicate the real end of the problem; good programming habits, some summary of the aftermath is very important; strive to achieve the best degree:
Because a lot of books on the knowledge of light to see again is not enough, look after oneself also can't write these code, must look after practice once, some people say this has learned, you wrong ~ actually throw the book or not, this need to write more write, that is, a skilled process, write the number of the more, that is, do not read the number of writing code more, In this way, the stronger the memory, the best learning effect can be achieved! Of course, the book is our permanent teacher!
If you're still learning the basics of Java, then tapping the code means it's best to knock the example out of the book yourself, primarily to master the basics, to familiarize yourself with some APIs, and to have the IDE.
If you want to improve the ability to the point, then put the book aside, find a project tutorial, whether it is the video class or just give the source code, the study is over, thinking about writing it out, this is called knocking code ...
Knocking code is actually a mental activity, if it's just a mechanical way to look at a book or an example ... That's exercise typing speed ...
The multi-knock code means:
1 knocks on the example code in the book. Here is not only the text input, but can try to make a small change, grasp the truth. such as System.out.println ("Hello world!"); Put "Hello world!" Change the string to another try.
2 Choose a few small topics, and do some of your own practical projects. such as the smallest calculator, text editor, IM and so on. These projects often require reference to resources on the network. At first, you can search for simple example source code, write it down. Then you search for the functionality you want to implement and wash out your code yourself.
3 participate in the actual project. But beginners don't have a lot of chances.
1 landlord can first find a thin Java basic tutorial, Tsinghua's can, not too thick, the basic concept to go through, at least you have to inherit, interface, exception, IO and so on (in fact, I think the GUI and the network, threads do not need too much attention).
2 after the book of the exercise to be all over again, is not to do, how much also have to conceive their own ideas. At this point, you can tap the code. Don't forget the JDK API, which is a must-have manual.
3 Basic things generally understand, you can look at some small projects online teaching video, if it involves the database, at least have to touch some, I recommend MySQL. Method the same, two. Additions and deletions to the sentence proficiency can be changed.
After reading, you can do it according to the gourd painting scoop.
4 The first three steps are done, nothing can come to csdn look at the javase part of the post, do not understand the keep abreast (some mix, haha). Understand can also see whether others have better methods and ideas.
5 The fourth step is also possible. Consider whether to go to Java EE or javame direction.
Although mobile development is very popular now, but personally think to find a job to eat, or Java EE. Go toward the Web.
This piece first must learn a html/css, online of 300 pages or so e-book can, must basic tutorial, don't complete those daquan, the grand ceremony, invincible this one, all Taixu.
Then there is the servlet/jsp. The specific syntax can be understood first, and slowly realized in small projects.
-The knowledge of the database is also involved in the middle. Both need to go hand in hand.
There is no way to feel, then buy two basic JSP tutorial, the next point of JSP teaching video to imitate learning.
All the above is clear. To study struts/hibernate/spring and so on.
"Turn" learning Java in practice