Java SE learning [1], javase Learning
I have learned java for more than one month. It takes more than 100 hours to calculate the time spent on it, the progress is that the variable, loop, branch, and array are finished, and the object-oriented part is learning. Record some puzzles and feelings I encountered during my study!
1. at the beginning, I found the do-while statement when I was reading the cainiao tutorial. It was very confusing to execute the statement first and then judge it. At that time, I thought, if I write int I = 10, if do {print I ++ code} (I <10); will it print an 11? However, I did not run it for a moment, and I was very confused at the time. Now I know that I ++ first calculates and then adds 1, and ++ I adds 1 before computing, print it again and I will be 11.
2. However, I am confused again. If syso ("I ++/3"), isn't it necessary to calculate the value first? Why is the value not counted after the calculation? Java ..
3. Start with a loop and branch to do something. Multiple cycles and multiple branches are also a bit confusing. For example, if I print out an equi-waist hollow triangle and debug the code for more than an hour, I can see that the first layer controls the number of rows cyclically and the second layer controls the number of spaces on each line, the third line controls the number of * numbers. In the next half an hour, I am studying the second condition in the for statement. It is really annoying to think about it. Later, I understand. First, I want to know what the result is. I need five spaces in the first line, and four in the second line ,...... There is no space in the last line. In this way, it is much easier to judge from the reverse push condition of the result.
4. There are several writing methods for arrays. I heard that the array will be replaced by a "set" later. It is worth noting that the subscript of the array starts from 0. Now we can see that the array is also an object?
Other problems seem to have disappeared. Many problems encountered during the course of learning cannot be thought of now, and some things that were difficult at the time can't be thought of now. In fact, this is the same as playing LOL! There is a clear idea to break down part of the problem. The lecturer in the class taught us yesterday was ill ...... I used another teacher to bring it. I made some reasonable remarks.
During the Spring Festival, we asked us to refresh the question bank for 200 yuan a day. However, I spent most of my time playing the game and did not make a good attempt to refresh the question bank. I just thought it was useless, however, it is indeed very useful! After I finish the question, I will have a better understanding of the theory. do not build a high level in the sand! I am still too ...... Lazy.
When someone else clicks the question and learns to play, don't be jealous when others get a high salary .. Yes. If you are the same as others and do not have your own advantages, why are you better than others? It is very painful. I was not enlightened enough.
Set a plan for this year. Recently, I have completed the school settings and exams, and I want to learn java well! The goal of the recent month is to first learn html, and the training class also published an html book, because the school needs to take this course, you can fix this html before training!
It's not because you like it, but because you like it. Stick to it!