Principles of Computer Programming (using Java) Chapter 2, Part 1 Haidong Xue Summer 2011, at GSU
Content Answers of assigenment1 Quiz1 Review Your first Java program Ch2.1, Ch2.2, Ch2.3 Variables and Types Ch2.4, Ch2.5 Examples
Assignment 1 Assignments received: 30 Average courses taken: 2.3 Number of beginners: 20 (beginner is defined as: 0 or limited programming experience)
Assignment 1 Make the photo in uLearn public
Quiz1 1:50PM – 2:00PM
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
YOUR FIRST JAVA PROGRAM Ch2.1, Ch2.2, Ch2.3 YOUR FIRST JAVA PROGRAM
Your First Java Program (Oracle documents)
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
VARIABLES AND THEIR TYPES Ch2.4, Ch2.5 VARIABLES AND THEIR TYPES
Primitive Data Types in Java Range Integer Types byte -128 to 127 short -32768 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
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
Examples HelloWorldPro.java FahrenheitToCelsius.java