1 of 7

Slide Notes

DownloadGo Live

Basic Programming

Published on Oct 03, 2019

No Description

PRESENTATION OUTLINE

Basic Programming

by Ezzaty
Photo by Pat Kay

DATA TYPES

  • String - text
  • Int - whole number
  • double - decimal number
  • char - gred ( A / B / C )
  • boolean - true/false
Photo by Pat Kay

METHODS

  • print - display output in a same line
  • println - display output in a new line
  • printf - insert format in the coding
Photo by Pat Kay

FORMATING OUTPUT

  • %s - a string ("Java")
  • %c - a character ('T')
  • %b - boolean value (true)
Photo by Pat Kay

ESCAPE SEQUENCES

  • \b - backspace
  • \t - tab
  • \n - newline
  • \\ - backslash
Photo by Pat Kay

Example of Java Code

Photo by Pat Kay

Untitled Slide

Photo by Pat Kay