arungeek
Hacks and Tweaks



Programming

July 1, 2012

Java Program To Multiply Two Matrices

More articles by »
Written by: arunenigma
Tags: , ,

This is a simple java program that teaches you for multiplying two matrix to each other. We are going to make a simple program that will multiply two matrix. Two dimensional array represents the matrix. 

Now, make this program, you have to declare two multidimensional array of type integer. Program uses two for loops to get number of rows and columns by using the arrayA.length. After getting both matrix then multiply to it. Both matrix will be multiplied to each other by using ‘for’ loop. So the output will be displayed on the screen command prompt by using the print() method.

 

 

 



About the Author

arunenigma
Computer Science Graduate Student @ Case Western Reserve University, Cleveland, USA




 
 

 
Factory_1

Python Factory Design Patterns using Switch Case

I googled for Factory Method Design Pattern in Python but couldn’t find a good resource. So, I  am sharing an example program to demonstrate this design pattern in Python which I frequently use. The factory method pattern is...
by arunenigma
 

 
 
Gospers_glider_gun

Conway’s Game of Life Implemetation in Python with cool patterns

he Game of Life (or simply Life) is not a game in the conventional sense. There are no players, and no winning or losing. Once the “pieces” are placed in the starting position, the rules determine everything that ha...
by arunenigma
 

 
 
bin-tree

Python AVL Tree Implementation with ASCII visualization

n computer science, an AVL tree is a self-balancing binary search tree. It was the first such data structure to be invented. In an AVL tree, the heights of the two child subtrees of any node differ by at most one; if at any tim...
by arunenigma
 

 

 
elephant_rgb-380x285

Installing Hadoop on Mac OSX Mountain Lion (Step by Step Instructions)

Setting up a single node Apache Hadoop instance on OS X is pretty simple and much the same as on any other Linux/Unix machines, with a small bit of customer configuration. See here for official instructions. This tutorial provi...
by arunenigma
 

 
 
decompile

How to convert(decompile) .pyc to py files

How to convert *.pyc to *.py files ? A few days before, I  accidentally deleted all my Python code while renaming some files. Luckily I had the .pyc files in the working directory. After googling for ways to convert .pyc back ...
by arunenigma
 

 




0 Comments


Be the first to comment!


You must be logged in to post a comment.