跳转至

Lecture 1: Types, Variables, Operators

Java can:

  • Simulate a natural/enginerring process
  • Manipulate PDFs
  • Draw pretty graphics Java runs on a "virtual machine" (JVM).

Types

Kinds of values that can be stored and manipulated.

boolean; int; double; String

Variables

Named location that stores a value of one particular type. Form: TYPE NAME;

Assignment(赋值)

Can be combined with a variable declaration.(double badPi = 3.14;)

Operators

Symbols that preform simple computations.(= + - * /)