Download presentation
Presentation is loading. Please wait.
Published byMarjorie Gilmore Modified over 6 years ago
1
Principles of Computer Programming (using Java) Chapter 2, Part 1
Haidong Xue Summer 2011, at GSU
2
Content Answers of assigenment1 Quiz1 Review Your first Java program
Ch2.1, Ch2.2, Ch2.3 Variables and Types Ch2.4, Ch2.5 Examples
3
Assignment 1 Assignments received: 30 Average courses taken: 2.3
Number of beginners: 20 (beginner is defined as: 0 or limited programming experience)
4
Assignment 1 Make the photo in uLearn public
5
Quiz1 1:50PM – 2:00PM
6
Review Algorithm textbook wiki Ch1.3 Ways to express algorithms Ch1.3
Computer programs (algorithms in the form of certain programming language) Ch1.3 The stuff computer programs manipulate Ch1.4 Compiler and Interpreter Ch1.5 The compiler and interpreter in Java Ch1.5
7
YOUR FIRST JAVA PROGRAM
Ch2.1, Ch2.2, Ch2.3 YOUR FIRST JAVA PROGRAM
8
Your First Java Program
(Oracle documents)
9
The knowledge I suggest you to remember
JDK, JRE, JVM How to get a Java program executed The composition of Java programs The composition of a method Java Keywords: public, static, void
10
VARIABLES AND THEIR TYPES
Ch2.4, Ch2.5 VARIABLES AND THEIR TYPES
11
Primitive Data Types in Java
Range Integer Types byte -128 to 127 short to 32767 int -231 to 231-1 long -263 to 263-1 Floating-Point Types float A lot double A lot and much more than float Boolean Type boolean {true, false} Char Type char 2128 characters
12
The knowledge I suggest you to remember
Variable declaration How to assign value to a variable The 4 most important data types and their keywords
13
Examples HelloWorldPro.java FahrenheitToCelsius.java
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.