<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: Java Program to multiply two matrices	</title>
	<atom:link href="https://studentprojects.in/software-development/java/java-programs/basic/java-program-to-multiply-two-matrices/feed/" rel="self" type="application/rss+xml" />
	<link>https://studentprojects.in/software-development/java/java-programs/basic/java-program-to-multiply-two-matrices/</link>
	<description>Microcontroller projects, Circuit Diagrams, Project Ideas</description>
	<lastBuildDate>Tue, 27 Aug 2013 09:28:59 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.1.7</generator>
	<item>
		<title>
		By: anuroop		</title>
		<link>https://studentprojects.in/software-development/java/java-programs/basic/java-program-to-multiply-two-matrices/comment-page-1/#comment-10052</link>

		<dc:creator><![CDATA[anuroop]]></dc:creator>
		<pubDate>Tue, 27 Aug 2013 09:28:59 +0000</pubDate>
		<guid isPermaLink="false">http://studentprojects.in/?p=858#comment-10052</guid>

					<description><![CDATA[Very useful.....you can get the more in detail at http://letusprogram.wordpress.com/2013/08/27/multiplication-of-two-matrix-in-java]]></description>
			<content:encoded><![CDATA[<p>Very useful&#8230;..you can get the more in detail at <a href="http://letusprogram.wordpress.com/2013/08/27/multiplication-of-two-matrix-in-java" rel="nofollow ugc">http://letusprogram.wordpress.com/2013/08/27/multiplication-of-two-matrix-in-java</a></p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: p@ul		</title>
		<link>https://studentprojects.in/software-development/java/java-programs/basic/java-program-to-multiply-two-matrices/comment-page-1/#comment-10010</link>

		<dc:creator><![CDATA[p@ul]]></dc:creator>
		<pubDate>Sun, 11 Aug 2013 14:40:51 +0000</pubDate>
		<guid isPermaLink="false">http://studentprojects.in/?p=858#comment-10010</guid>

					<description><![CDATA[The effort is highly appreciative.
The following code is for those who don&#039;t studied scanner classes yet (With algorithms) :

package matrixmultiplication;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class MatrixMultiplication {
public static void main(String[] args) throws IOException {

//BufferedReader to read text from character-InputStream and to buferring characters to provide efficient reading of characters
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

String temp;
System.out.println(&quot;Insert rows in Matrix 1 &#062;&#062; &quot;); 
//Reading the user input and copy into temp
temp = br.readLine();

//Assigning the value of temp to integer variable M1Row (After parsing string as signed decimal integer)
int M1Row = Integer.parseInt(temp);

System.out.println(&quot;Insert columns in Matrix 1 &#062;&#062; &quot;);
temp = br.readLine();
int M1Col = Integer.parseInt(temp);
System.out.println(&quot;Insert rows in Matrix 2 &#062;&#062; &quot;);
temp = br.readLine();
int M2Row = Integer.parseInt(temp);
System.out.println(&quot;Insert columns in Matrix 2 &#062;&#062; &quot;);
temp = br.readLine();
int M2Col = Integer.parseInt(temp);

//Checking whether the multiplication is applicable
if (M1Col == M2Row) {

//Creating and initializing arrays to hold matrices
int[][] Matrix1 = new int[M1Row][M1Col];
int[][] Matrix2 = new int[M2Row][M2Col];
int[][] Matrix3 = new int[M1Row][M2Col];

//Inserting values in Martix1
System.out.println(&quot;Insert values in Matrix1:&quot;);
for (int i = 0; i &#060; M1Row; i++) {
for (int j = 0; j &#060; M1Col; j++) {
temp = br.readLine();
Matrix1[i][j] = Integer.parseInt(temp);
}
} 
//Inserting values in Martix2
System.out.println(&#034;Insert values in Matrix2:&#034;);
for (int i = 0; i &#060; M2Row; i++) {
for (int j = 0; j &#060; M2Col; j++) {
temp = br.readLine();
Matrix2[i][j] = Integer.parseInt(temp);
}
}
  
//Multiplying two matrices
System.out.println(&#034;Multiplying...&#034;);
int temp1 = 0;
for (int i = 0; i &#060; M1Row; i++) {
for (int j = 0; j &#060; M2Col; j++) {
for (int k = 0; k &#060; M2Row; k++) {
temp1 = temp1 + Matrix1[i][k] * Matrix2[k][j];
}
//Inserting elements in result matrix
Matrix3[i][j] = temp1;
temp1 = 0;
}
}
  
//Display result of Multiplication
System.out.println(&#034;Multiplication Completed!&#034;);
System.out.println(&#034;............................................&#034;);
System.out.println(&#034;Result&#034;);
for (int i = 0; i &#060; M1Row; i++) {
for (int j = 0; j &#060; M2Col; j++) {
System.out.print(Matrix3[i][j] + &#034;\t&#034;);
}
System.out.println();
}
System.out.println(&#034;............................................&#034;);
} else {
System.out.println(&#034;Multiplication could not be done!&#034;);
System.out.println(&#034;Tip: Number of columns in a matrix1 should be equal to number of rows in matrix2 to perform multiplication.&#034;);
}
}
} 

i hope this helps icse students. Please reply if this helped]]></description>
			<content:encoded><![CDATA[<p>The effort is highly appreciative.<br />
The following code is for those who don&#8217;t studied scanner classes yet (With algorithms) :</p>
<p>package matrixmultiplication;<br />
import java.io.BufferedReader;<br />
import java.io.IOException;<br />
import java.io.InputStreamReader;</p>
<p>public class MatrixMultiplication {<br />
public static void main(String[] args) throws IOException {</p>
<p>//BufferedReader to read text from character-InputStream and to buferring characters to provide efficient reading of characters<br />
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));</p>
<p>String temp;<br />
System.out.println(&#8220;Insert rows in Matrix 1 &gt;&gt; &#8220;);<br />
//Reading the user input and copy into temp<br />
temp = br.readLine();</p>
<p>//Assigning the value of temp to integer variable M1Row (After parsing string as signed decimal integer)<br />
int M1Row = Integer.parseInt(temp);</p>
<p>System.out.println(&#8220;Insert columns in Matrix 1 &gt;&gt; &#8220;);<br />
temp = br.readLine();<br />
int M1Col = Integer.parseInt(temp);<br />
System.out.println(&#8220;Insert rows in Matrix 2 &gt;&gt; &#8220;);<br />
temp = br.readLine();<br />
int M2Row = Integer.parseInt(temp);<br />
System.out.println(&#8220;Insert columns in Matrix 2 &gt;&gt; &#8220;);<br />
temp = br.readLine();<br />
int M2Col = Integer.parseInt(temp);</p>
<p>//Checking whether the multiplication is applicable<br />
if (M1Col == M2Row) {</p>
<p>//Creating and initializing arrays to hold matrices<br />
int[][] Matrix1 = new int[M1Row][M1Col];<br />
int[][] Matrix2 = new int[M2Row][M2Col];<br />
int[][] Matrix3 = new int[M1Row][M2Col];</p>
<p>//Inserting values in Martix1<br />
System.out.println(&#8220;Insert values in Matrix1:&#8221;);<br />
for (int i = 0; i &lt; M1Row; i++) {<br />
for (int j = 0; j &lt; M1Col; j++) {<br />
temp = br.readLine();<br />
Matrix1[i][j] = Integer.parseInt(temp);<br />
}<br />
}<br />
//Inserting values in Martix2<br />
System.out.println(&quot;Insert values in Matrix2:&quot;);<br />
for (int i = 0; i &lt; M2Row; i++) {<br />
for (int j = 0; j &lt; M2Col; j++) {<br />
temp = br.readLine();<br />
Matrix2[i][j] = Integer.parseInt(temp);<br />
}<br />
}</p>
<p>//Multiplying two matrices<br />
System.out.println(&quot;Multiplying&#8230;&quot;);<br />
int temp1 = 0;<br />
for (int i = 0; i &lt; M1Row; i++) {<br />
for (int j = 0; j &lt; M2Col; j++) {<br />
for (int k = 0; k &lt; M2Row; k++) {<br />
temp1 = temp1 + Matrix1[i][k] * Matrix2[k][j];<br />
}<br />
//Inserting elements in result matrix<br />
Matrix3[i][j] = temp1;<br />
temp1 = 0;<br />
}<br />
}</p>
<p>//Display result of Multiplication<br />
System.out.println(&quot;Multiplication Completed!&quot;);<br />
System.out.println(&quot;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..&quot;);<br />
System.out.println(&quot;Result&quot;);<br />
for (int i = 0; i &lt; M1Row; i++) {<br />
for (int j = 0; j &lt; M2Col; j++) {<br />
System.out.print(Matrix3[i][j] + &quot;\t&quot;);<br />
}<br />
System.out.println();<br />
}<br />
System.out.println(&quot;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..&quot;);<br />
} else {<br />
System.out.println(&quot;Multiplication could not be done!&quot;);<br />
System.out.println(&quot;Tip: Number of columns in a matrix1 should be equal to number of rows in matrix2 to perform multiplication.&quot;);<br />
}<br />
}<br />
} </p>
<p>i hope this helps icse students. Please reply if this helped</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Dandabani		</title>
		<link>https://studentprojects.in/software-development/java/java-programs/basic/java-program-to-multiply-two-matrices/comment-page-1/#comment-9906</link>

		<dc:creator><![CDATA[Dandabani]]></dc:creator>
		<pubDate>Tue, 16 Jul 2013 10:10:38 +0000</pubDate>
		<guid isPermaLink="false">http://studentprojects.in/?p=858#comment-9906</guid>

					<description><![CDATA[don muthu ... i would lyk to ask abt the cosmopolitan of the analytical differentiation for the fundamental biology of catastrophic formula of dhanush and co. in 3 film ?????]]></description>
			<content:encoded><![CDATA[<p>don muthu &#8230; i would lyk to ask abt the cosmopolitan of the analytical differentiation for the fundamental biology of catastrophic formula of dhanush and co. in 3 film ?????</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: don muthu		</title>
		<link>https://studentprojects.in/software-development/java/java-programs/basic/java-program-to-multiply-two-matrices/comment-page-1/#comment-9905</link>

		<dc:creator><![CDATA[don muthu]]></dc:creator>
		<pubDate>Tue, 16 Jul 2013 10:09:28 +0000</pubDate>
		<guid isPermaLink="false">http://studentprojects.in/?p=858#comment-9905</guid>

					<description><![CDATA[ennaku therinja thella kathi,,kuthu]]></description>
			<content:encoded><![CDATA[<p>ennaku therinja thella kathi,,kuthu</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: don muthu		</title>
		<link>https://studentprojects.in/software-development/java/java-programs/basic/java-program-to-multiply-two-matrices/comment-page-1/#comment-9904</link>

		<dc:creator><![CDATA[don muthu]]></dc:creator>
		<pubDate>Tue, 16 Jul 2013 10:09:26 +0000</pubDate>
		<guid isPermaLink="false">http://studentprojects.in/?p=858#comment-9904</guid>

					<description><![CDATA[ennaku therinja thella kathi,,kuthu]]></description>
			<content:encoded><![CDATA[<p>ennaku therinja thella kathi,,kuthu</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: don muthu		</title>
		<link>https://studentprojects.in/software-development/java/java-programs/basic/java-program-to-multiply-two-matrices/comment-page-1/#comment-9903</link>

		<dc:creator><![CDATA[don muthu]]></dc:creator>
		<pubDate>Tue, 16 Jul 2013 10:08:24 +0000</pubDate>
		<guid isPermaLink="false">http://studentprojects.in/?p=858#comment-9903</guid>

					<description><![CDATA[i agree with  dandabani

well said dandabani]]></description>
			<content:encoded><![CDATA[<p>i agree with  dandabani</p>
<p>well said dandabani</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: don muthu		</title>
		<link>https://studentprojects.in/software-development/java/java-programs/basic/java-program-to-multiply-two-matrices/comment-page-1/#comment-9902</link>

		<dc:creator><![CDATA[don muthu]]></dc:creator>
		<pubDate>Tue, 16 Jul 2013 10:06:59 +0000</pubDate>
		<guid isPermaLink="false">http://studentprojects.in/?p=858#comment-9902</guid>

					<description><![CDATA[i agree with  dandabani]]></description>
			<content:encoded><![CDATA[<p>i agree with  dandabani</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Dandabani		</title>
		<link>https://studentprojects.in/software-development/java/java-programs/basic/java-program-to-multiply-two-matrices/comment-page-1/#comment-9901</link>

		<dc:creator><![CDATA[Dandabani]]></dc:creator>
		<pubDate>Tue, 16 Jul 2013 10:04:47 +0000</pubDate>
		<guid isPermaLink="false">http://studentprojects.in/?p=858#comment-9901</guid>

					<description><![CDATA[thats all ah ?????
i expected some wat difficult ...
this is simple to my knowledge...
so any doubt means call me... :P]]></description>
			<content:encoded><![CDATA[<p>thats all ah ?????<br />
i expected some wat difficult &#8230;<br />
this is simple to my knowledge&#8230;<br />
so any doubt means call me&#8230; 😛</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: meow muthu		</title>
		<link>https://studentprojects.in/software-development/java/java-programs/basic/java-program-to-multiply-two-matrices/comment-page-1/#comment-9900</link>

		<dc:creator><![CDATA[meow muthu]]></dc:creator>
		<pubDate>Tue, 16 Jul 2013 09:38:02 +0000</pubDate>
		<guid isPermaLink="false">http://studentprojects.in/?p=858#comment-9900</guid>

					<description><![CDATA[its very bad 
i only drink milk ,,i cannot understand]]></description>
			<content:encoded><![CDATA[<p>its very bad<br />
i only drink milk ,,i cannot understand</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: mahi balan		</title>
		<link>https://studentprojects.in/software-development/java/java-programs/basic/java-program-to-multiply-two-matrices/comment-page-1/#comment-9899</link>

		<dc:creator><![CDATA[mahi balan]]></dc:creator>
		<pubDate>Tue, 16 Jul 2013 09:35:04 +0000</pubDate>
		<guid isPermaLink="false">http://studentprojects.in/?p=858#comment-9899</guid>

					<description><![CDATA[very good but i cant understand 
hence it is very bad
hence proved]]></description>
			<content:encoded><![CDATA[<p>very good but i cant understand<br />
hence it is very bad<br />
hence proved</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
