Why do you want to do software development? (Why choose Java?) )
When I was a child playing FC, I dreamed of growing up to become a game developer, who knew that grew up but became a construction industry cost controller. One months ago, I finally decided to quit the job that was quite good, and resolutely recast the dream of the Software Development engineer. Android is my favorite platform, let this dream from Java sailing bar.
A beginner's learning experience in Java
In fact, when I was still doing a job, I have seen some of the Python primer like "A byte of Python", but I am good at computer and have good PC habits, the knowledge of software is often just familiar with software installation and uninstall, open and close, and how to use:(, Later on the understanding of people talking about the spread of the wisdom of the Dark Horse training camp, he thought to try.
The main target of the camp is not 0 of the basic learners like me, and the entrance threshold is much higher than the training courses in other institutions in China. But after careful deliberation, I decided to go to the Dark Horse training camp to study. Go to the official website to download the Java Learning Video, listen to the teacher's course to get started Java. Of course, in the process of registration, because of their own personality problems, go very slowly (on the one hand, fear of their own foundation is too poor to pass the entrance examination, on the other hand is afraid that they can not follow the course progress).
Holding to give themselves a good foundation of the original intention, in the following video learning, but also try to learn basic algorithms and data structure knowledge, while improving their mathematical literacy. The process is relatively lengthy, but since you want to go farther on this path, you should pay more.
The cost is precious time, and the long-time admission process ...
A daily test
Whim, want to write a conversion of the second component clock of the small program, so the following code.
/*train of thought: 1. Define two variables to store the input data seconds (s) and minutes (m); 2. Design a method to export the data to the component clocks, and pay attention to the conversion of minutes to "integer" and "full-remainder second" two possible; 3. Return the result of this method, and output to the screen to verify the correctness of the results. */ImportJava.util.Scanner; Public classSec2min { Public Static voidMain (string[] args) {ints; intM//define variables to store minutes and seconds. System.out.print ("Please enter the time to convert the component clock (s):"); Scanner SC=NewScanner (system.in); S=Sc.nextint (); Sc.close (); intTemp = s% 60;//Two possibilities for defining a temporary variable to determine the second-minute turn if(temp = = 0) {m= S/60; System.out.println (S+ "seconds equals" + M + "minutes. "); } //you can return a result when the second is an integer Else if(Temp! = 0) {m= S/60; intms = s% 60; System.out.println (S+ "seconds equals" + M + "minutes" + ms + "seconds." "); } //you can return a result when the second is divided by the number of seconds.System.exit (0); }}
Learn Java from scratch (i)