星期一, 11月 28, 2005
星期一, 11月 21, 2005
Homework 11-28-2005
1. Do Project 4.5 (the Counter project) 2nd ed. or Project 4.1 1st ed. without implementing toString method
or equals method. For now, you may comment out the statements in the main that test equals method
or equals method. For now, you may comment out the statements in the main that test equals method
星期一, 10月 31, 2005
Homework Lab 11-21 (2) Class Definition
Study Display 4.2 & Display 4.3 and then
1. comment out date.setDate(6, 17, year); by // date.setDate(6, 17, year);
2. At the next line below, add date.readInput();
3. Run the program again. Fix any problems you may encouter along the way.
4. At the last line of your program, add System.out.println(date.month);
and see what happens. Why?
1. comment out date.setDate(6, 17, year); by // date.setDate(6, 17, year);
2. At the next line below, add date.readInput();
3. Run the program again. Fix any problems you may encouter along the way.
4. At the last line of your program, add System.out.println(date.month);
and see what happens. Why?
Lab 10-31 (1) product of N positive numbers
Compute the product of N positive numbers.
Mark the end with a negative mumber.
Mark the end with a negative mumber.
10-31 Quiz Fibonacci
Name 3 objects that demonstrate Fibonacci numbers and
illustrate the objects with figures.
illustrate the objects with figures.
Homework Lab 10-31 (2) Mean & Variance
Compute the variance of N positive numbers.
Mark the end with a negative mumber.
Mark the end with a negative mumber.
Homework 10-31 Lab (1) String Comparison
Write a Java program to check string equality for
String s1="I come from CYCU.";
String s2="I come from cycu.";
Can we do it with "=="?
What is the result for case-sensitive comparison?
What about case-insensitive?
String s1="I come from CYCU.";
String s2="I come from cycu.";
Can we do it with "=="?
What is the result for case-sensitive comparison?
What about case-insensitive?
訂閱:
文章 (Atom)