2008年10月30日 星期四

2008年10月29日 星期三

Homework 10-24-2008

1.費氏數列





























2.九九乘法






2008年10月24日 星期五

2008年10月23日 星期四

2008年10月19日 星期日

Homework 10-3-2008

Project 4 in Chapter 2




Project 5 in Chapter 2



Project 6 in Chapter 2





Project 7 in Chapter 2







Lab: Numerical Method


2008年10月3日 星期五

Lab Keyboad processing

Lab Keyboard Input

Rewrite Display 2.6 using BufferedReader.

You need to import the following packages in the first place.

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;

Change

Scanner keyboard= new Scanner(System.in);

into

BufferedReader keyboard= new BufferedReader(new InputStreamReader(System.in));

String inputString = keyboard.readLine();

Note the Main method needs IOException handling as follows:

public static void main (String[] args) throws IOException

Lab Scanner