CODE
/*
* Main_2.java
*
* Created on December 15, 2004, 8:34 PM
*/
/**
*
* @author Max $*%^$
*/
import javax.swing.JOptionPane;
public class Final {
public static void main(String[] args) {
int OneOne;
int OneTwo;
int OneThree;
int OneFour;
int OneFive;
int TwoOne;
int TwoTwo;
int TwoThree;
int TwoFour;
int TwoFive;
int ThreeOne;
int ThreeTwo;
int ThreeThree;
int ThreeFour;
int ThreeFive;
String sOneOne;
String sOneTwo;
String sOneThree;
String sTwoOne;
String sTwoTwo;
String sTwoThree;
String sThreeOne;
String sThreeTwo;
String sThreeThree;
sOneOne = JOptionPane.showInputDialog("Enter Number");
sOneTwo = JOptionPane.showInputDialog("Enter Number");
sOneThree = JOptionPane.showInputDialog("Enter Number");
sTwoOne = JOptionPane.showInputDialog("Enter Number");
sTwoTwo = JOptionPane.showInputDialog("Enter Number");
sTwoThree = JOptionPane.showInputDialog("Enter Number");
sThreeOne = JOptionPane.showInputDialog("Enter Number");
sThreeTwo = JOptionPane.showInputDialog("Enter Number");
sThreeThree = JOptionPane.showInputDialog("Enter Number");
OneOne = Integer.parseInt(sOneOne);
OneTwo = Integer.parseInt(sOneTwo);
OneThree = Integer.parseInt(sOneThree);
TwoOne = Integer.parseInt(sTwoOne);
TwoTwo = Integer.parseInt(sTwoTwo);
TwoThree = Integer.parseInt(sTwoThree);
ThreeOne = Integer.parseInt(sThreeOne);
ThreeTwo = Integer.parseInt(sThreeTwo);
ThreeThree = Integer.parseInt(sThreeThree);
OneFour = OneOne + 0;
OneFive = OneTwo + 0;
TwoFour = TwoOne + 0;
TwoFive = TwoTwo + 0;
ThreeFour = ThreeOne + 0;
ThreeFive = ThreeTwo + 0;
JOptionPane.showMessageDialog(null, "New Matrix\n" +
OneOne + " " + OneTwo + " " + OneThree + " " + OneFour + " " + OneFive + "\n" +
TwoOne + " " + TwoTwo + " " + TwoThree + " " + TwoFour + " " + TwoFive + "\n" +
ThreeOne + " " + ThreeTwo + " " + ThreeThree + " " + ThreeFour + " " + ThreeFive);
/*int array[] [] = { {OneOne, OneTwo, OneThree},
{TwoOne, TwoTwo, TwoThree},
{ThreeOne, ThreeTwo, ThreeThree} };
JOptionPane.showMessageDialog(null, array);*/
System.exit(0);
}
}