Statements: Introduction - PowerPoint PPT Presentation

1 / 1
About This Presentation
Title:

Statements: Introduction

Description:

An expression has a type and a value. A statement has neither type nor value; ... Statements are appended with a semicolon: int x; Hobbit frodo, ringBearer; ... – PowerPoint PPT presentation

Number of Views:47
Avg rating:3.0/5.0
Slides: 2
Provided by: davidmutch
Category:

less

Transcript and Presenter's Notes

Title: Statements: Introduction


1
Statements Introduction
  • An expression has a type and a value
  • A statement has neither type nor value instead,
    it has an effect
  • Statements are appended with a semicolon
  • int x Hobbit frodo, ringBearer
  • x 34 frodo new Hobbit()
  • ringBearer frodo
  • The increment pattern (for counting)
  • x x 1 x x
  • Block statement just enclose statements in
    braces , i.e.
  • Later conditional and iteration statements
Write a Comment
User Comments (0)
About PowerShow.com