An Example of Control Structures

3
An Example of Control Structures • Control structures (selection and repetition) • Read integers from a file • Graphics • Classes • Window-based app. vs. console app. • Event handling • Others

description

An Example of Control Structures. Control structures (selection and repetition) Read integers from a file Graphics Classes Window-based app. vs. console app. Event handling Others. Math Functions. There is a class called java.lang.Math double radian=Math.PI/180.0; double y=Math.sin(x);. - PowerPoint PPT Presentation

Transcript of An Example of Control Structures

Page 1: An Example of Control Structures

An Example of Control Structures

• Control structures (selection and repetition)

• Read integers from a file

• Graphics

• Classes

• Window-based app. vs. console app.

• Event handling

• Others

Page 2: An Example of Control Structures

Math Functions

• There is a class called java.lang.Math

• double radian=Math.PI/180.0;

• double y=Math.sin(x);

Page 3: An Example of Control Structures

First Assignment

• Control structures (selection and repetition)

• Graphics