忍者ブログ
To show what I have done in the works
[8] [7] [6] [5] [4] [3] [2] [1]
×

[PR]上記の広告は3ヶ月以上新規記事投稿のないブログに表示されています。新しい記事を書く事で広告が消えます。

Table of Multiplier (乘數表) , each of you must know it.

I use array to make it up. Array is starting at 0, so I made:
int array[] = new int[ 11 ]; (line 10)  11 is the value to show "10". (Please see downward)

And I set: for ( int counter = 1; counter < array.length; counter++ ) (line 23)
int counter = 1, this is setting for the value to show the starting value.

For 0 and 1 are no meaning to remember, so I start from 2 to 9. But the code is not 100% the best, welcome to discuss!

Update at 2007/10/26:

Multiplier2 is using two for loop to make, and it is more simple than the first one.


Download the file:
1.
Multiplier.class
2.Multiplier.java
3.Multiplier2.class
4.Multiplier2.java

You can see the code in here.
PR

コメント


コメントフォーム
お名前
タイトル
文字色
メールアドレス
URL
コメント
パスワード
  Vodafone絵文字 i-mode絵文字 Ezweb絵文字


トラックバック
この記事にトラックバックする:


忍者ブログ [PR]
Date
03 2024/04 05
S M T W T F S
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30
Freearea
New Commend
[10/21 Ash]
[10/20 張真人]
New Event
Blog Search