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
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);
First Assignment
• Control structures (selection and repetition)
• Graphics