Java Basics (Geek)--07, Java Common techniques-java compounding environment variables and common techniques (mostly overview, you can watch video)

Source: Internet
Author: User
Tags square root

1 Overview of this lesson

2 Course Overview

3 Computer Language Overview

4Java Getting Started

5JDK Introduction (useful)

6 Setting environment Variables (useful)

7 writing the first Java program

Program Structure of 8Java

9Eclipse Development Tools Overview

10 Downloads Eclipse(useful)

11Eclipse Development Environment Introduction (useful)

12 Creating a Java Project

13 Assigning a value to the args parameter of the Main method (useful)

14 Add operation

Project Structure of 15Java

16 Export of projects

17 Import of items

18 Modifying the project name, package name, and class name

19Math class (useful)

Writing specifications for 20Java programs

21 Common errors

22 Common Tips (useful)

/**
*
* 19Math Class
* The Math class is a tool class for mathematical operations in the JDK
*/
public class MyMath {


public static void Main (string[] args) {
System.out.println (Math.floor (10/3));//Only integral parts are reserved
System.out.println (Math.Round (3.75));//rounding the 1th digit after the decimal point
System.out.println (Math.Abs (-10));//Ball Absolute
System.out.println (Math.pow (3, 4));//3 4-Square =81
System.out.println (MATH.SQRT (100)); The square root of//100
System.out.println (Math.Round (3.75 * 10)/10.0);//The first digit after the decimal point is reserved


}


}



SOURCE Download:


Video Download:


Java Basics (Geek)--07, Java Common techniques-java compounding environment variables and common techniques (mostly overview, you can watch video)

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.