上課用
2009年3月2日 星期一
Lab Java operators
a) Write a Java program as follows:
Let i=2;
Print i;
Print 2 * (i++);
Print i;
Ans: 2, 4, 3
b) Write a Java program as follows:
Let i=2;
Print i;
Print 2 * (++i);
Print i;
Ans: 2, 6, 3
沒有留言:
張貼留言
較新的文章
較舊的文章
首頁
訂閱:
張貼留言 (Atom)
JAVA課
YJ Chang's
網誌存檔
►
2010
(2)
►
2月
(2)
▼
2009
(55)
►
6月
(8)
►
5月
(14)
►
4月
(7)
▼
3月
(23)
MEMO
MEMO
lab class definition
Lab Cosine
TEMP
[090330]
TEMP
Lab Fibonacci
TEMP
Homework 3-16-2009
Lab Finding the max of a list of numbers
Lab Finding the max of a list of numbers
Lab Finding the max of three numbers
Lab Tax Calculation
Homework 3-9-2009
Lab Keyboard precessing
Lab Keyboard Input
Lab Scanner
Homework 3-2-2009
Lab String Processing
Lab Java casting
Lab Java operators
Homework 2-23-2009
►
2月
(3)
上課用
載入中…
沒有留言:
張貼留言