//Matrix multiplication import java.util.Scanner; public class Matrix
{
public static void main(String args[])
{
Scanner s= new Scanner(System.in);
int i,j,k; System.out.println("enter the value of n"); int n=s.nextInt(); int a[][]=new int[n][n]; int b[][]=new int[n][n]; int c[][]=new int[n][n]; System.out.println("enter the array elements of a:"); for(i=0;i<n;i++)
{
for(j=0;j<n;j++)
{
a[i][j]=s.nextInt();
}
}//end of a matrix System.out.println("enter the array elements of b:"); for(i=0;i<n;i++)
{
for(j=0;j<n;j++)
{
b[i][j]=s.nextInt();
}
}//end of b matrix System.out.println("the result matrix is:");
for(i=0;i<n;i++)
{
for(j=0;j<n;j++)
{
for(k=0;k<n;k++)
{ c[i][j]+=a[i][k]*b[k][j]; }
}
} for(i=0;i<n;i++)
{
for(j=0;j<n;j++)
{
System.out.print(+c[i][j]);
}System.out.println();
}
}//end of main
}//end of class
write a program draw circle and ellipse by using oval methods in java
Write a program that graphically demonstrates the shortest path algorithm
Yes, that's what JNI is good for.
Since the Java program is basically a text file, you can write it in any text editor (although using a Java IDE, or an IDE with support for Java, does give you certain advantages). Thus, you can use programs such as NotePad or NotePad++ to write the Java program. Using word processors such as MS-Word is problematic, because these insert additional codes. You would have to make sure you save the resulting file in the text format - give the "Save As" command, and choose a text format from the list.
A Program in Java that spawns multiple threads is called a multithreaded program in Java.
Matrices can't be "computed" as such; only operations like multiplication, transpose, addition, subtraction, etc., can be done. What can be computed are determinants. If you want to write a program that does operations such as these on matrices, I suggest using a two-dimensional array to store the values in the matrices, and use for-loops to iterate through the values.
yes ,i can add the website link in java program when we write.
Exactly what do you mean by 'C program in Java'
Java, like many other programming languages, uses the asterisk for the multiplication operator. Therefore, two numbers a and b are multiplied, and their product assigned to a variable r, with this construct: r = a * b;
write a java program to display "Welcome Java" and list its execution steps.
\n
You can use Java's built-in functions to write a code that will find multilingual languages.
It isn't. It can also be used to write desktop applications. Java does have many options to program for the Internet, but that is not the only possibility.It isn't. It can also be used to write desktop applications. Java does have many options to program for the Internet, but that is not the only possibility.It isn't. It can also be used to write desktop applications. Java does have many options to program for the Internet, but that is not the only possibility.It isn't. It can also be used to write desktop applications. Java does have many options to program for the Internet, but that is not the only possibility.
write a program draw circle and ellipse by using oval methods in java
bgfygfrhjyuyhh
Write a program that graphically demonstrates the shortest path algorithm
barsanabegam