Assignment statements r We assign a value to a variable using an assignment statements. r The syntax is <variable>= <expression> i r Examples: sum firstNumber secondnumber avg =(one two three)/3.0 C 2000 McGraw-Hill troduction to Object-Oriented Programming with Java--Wu Chapter 3-7© 2000 McGraw-Hill Introduction to Object-Oriented Programming with Java--Wu Chapter 3 - 7 Assignment Statements We assign a value to a variable using an assignment statements. The syntax is <variable> = <expression> ; Examples: sum = firstNumber + secondNumber; avg = (one + two + three) / 3.0;