Current progress: Started one weeks, began to understand Java some common commands and algorithms, etc., can write some simple programs. Learning methods: Using tomato working method (can use the app tomato potatoes, very useful), Introduction to Computer science and Java language Programming alternate look, emphasis on Java, Do not understand the place to find online video repeatedly to see the understanding. Learning interest: relatively large. Learning efficiency: General Day study time: 3-4 hours.
The recent decrease in learning time should be reflected in this. One weeks of time, not many things to learn: basic data types, constants, variables, assignments, operators, SELECT statements, loop statements, strings, and then write some such as calculate leap year/calculate the tax rate and other very simple procedures, these things can be completed in two or three days.
Hang out just write a program, this is a guess number of small program.
Import Java.util.Scanner;
public class Guessnumber
{
public static void Main (string[] args)
{
int number = (int) (Math.random () *101);
Scanner input = new Scanner (system.in);
System.out.println ("Guess a magic number between 0 and 100");
int Guess =-1;
while (Guess! = number)
{
System.out.print ("\nenter Your guess:");
Guess = Input.nextint ();
if (Guess = = number)
System.out.println ("yes,the number is" + number);
else if (Guess > number)
SYSTEM.OUT.PRINTLN ("You guess was too high");
Else
SYSTEM.OUT.PRINTLN ("You guess was too low");
}
}
}
Keep working on it.
Android Development Study Diary (one weeks)