正在加载图片...
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;
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有