Learning Objectives

Preparation

  • Set up Java development environment
  • Write a simple Java program "Hello World"
  • Execute your program

Structure of Java Program

  • Describe the structure of a basic Java program

Statements

  • Understand statement and writing simple statements
  • Implement system output statement to the console

Flow of program

  • Trace the execution of a Java program starting from main()

Data Types

  • What? Why?

Variables

  • What? Why?
  • How? 
    • Declare variables with suitable data types
      • Declare with initialization (<data type>   <name> = <value>; )
    • Assign a value to a variable (=)
    • Access a variable
  • Identify variables in a program for their data types

User Input Collection

  • Get user's input using a pre-defined Helper class (RP specific) for primitive data type and string input

Operators

  • Arithmetic (+-*/%)
  • Unary (++,--, -)
  • Assignment (=)
  • Special Assignment (+=,-=)
  • String Concatenation (+) 
  • Create formulas using basic operators



Last modified: Tuesday, 25 October 2016, 11:57 AM