Hacks and Tweaks


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

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



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


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


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



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


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



Be the first to comment!

You must be logged in to post a comment.