2007年6月11日 星期一

2007年6月4日 星期一

JAVA期末考 (二)


JAVA期末考 (一)

1.雖然這學期上的課我很多還是不太懂,

但是可以感受到老師的教學很用心,

也都希望我們可以學到東西,

即使還沒有學到可以直接實際應用的東西,

不過可以了解到JAVA在通訊傳輸上比其他程式語言更方便!!

以後有機會的話,

我會想要學的更深入!!

2. Design a static method that can compute the vector inner product. You must first define Vector class in the first place. Write a demo program to verify your program works.


Homework 5-28-2007: Sorting


"Lab Static Method II"






















2007年5月21日 星期一

2007年4月9日 星期一

Lab 4/09


Lab: Tax Calculation


Homework 3-26-2007: Finding the max and the min

Based on your study of Display 3.8, write a code to find the max and min of a list of number.For example, given 1,3,5, and9, the max is 9 and the min is 1.Your program should be able to process a list of any length.


2007年3月26日 星期一

java 考試 (一)

1. Revise your program for Simple Java Expression according to Java program styles. Check the following(1) the naming of constants, if any,(2) Java spelling conventions, and(3) indenting.




















2. Insert proper comments in your program for Simple Java Expression. Note that there are 2 ways to insert comments: line comments and block comments.









3. The identifier BufferedReader is normally abbreviated as BR in programming language C. However, Java programmers normally do not use abbreviations in identifiers. Can you give some good reasons for using long names in Java?








4. The Java Virtual Machine handles string objects in a way different from the one it handles variables of primitive types such as int, long, float, and double. What is the difference?





ans:





spring 在 java 裡面是個類別為 (class) 的變數





int-integer 整數的方式可記憶 4bytes





long-integer 整數的方式可記憶 8bytes





float 浮點數的方式可記憶 4bytes





double 浮點數的方式可記憶 8bytes

java 作業 (五)

project 1
































project 2































project 3