Android Development Study Diary (one weeks)

Source: Internet
Author: User

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)

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.