Statements: Introduction PowerPoint PPT Presentation

presentation player overlay
1 / 1
About This Presentation
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