File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 4419
    
    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: 10911
    
  12

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
Prime numbers
Forcing horizontal display
How many languages do you speak ...
Java: Thread