This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes how to make this output multiplication using array in java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "how to make this output multiplication using array in java" Watch "how to make this output multiplication using array in java" New topic
Author

how to make this output multiplication using array in java

Siti Zulaiha Khasnan
Greenhorn

Joined: Feb 13, 2013
Posts: 1
example : if input is 2, print the 2 tables in the following format :
1*2 = 2
2*2 = 4
3*2 = 6
4*2 = 8
5*2 = 10
6*2 = 12
7*2 = 14
8*2 = 16
9*2 = 18
10*2 = 20
Junilu Lacar
Bartender

Joined: Feb 26, 2001
Posts: 4447
    
    5

I don't see why you even need an array to do that. Just use a for-loop.


Junilu - [How to Ask Questions] [How to Answer Questions]
fred rosenberger
lowercase baba
Bartender

Joined: Oct 02, 2003
Posts: 11170
    
  16

Step 1) turn off your computer
Step 2) get paper and pencil
Step 3) write down in English (or any other natural language of your choice) the steps you would give a 10 year old child if they had to do this by hand.
Step 4) revise that list at least 5 times, further simplifying and clarifying the steps each time.

ONLY when you have completed the above should you consider writing a single line of code.


There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to make this output multiplication using array in java
 
Similar Threads
The Four Fours Problem
Forcing horizontal display
How many languages do you speak ...
Java: Thread
Prime numbers