CurvedSpace Forums: Final - CurvedSpace Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • {lang:pm_locked} This topic is locked

Final

#1 {lang:macro__useroffline}   Mrb1 {lang:icon}

  • 2005 Mini Cooper S
  • Icon
  • Group: New Member
  • Posts: 835
  • Joined: 22-January 03

Posted 16 December 2004 - 02:20 AM

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);
       
   }
   
}

user posted image

Special Quote: A brave general once said, "You tell you men your soldiers. You tell them thats our flag. You tell them no one takes our flag. Tell them to raise it hight so everyone can see it. Now you've got yourself a Castle": The Last Castle

Car of the Week. Next Change: 1/22/05
Car Specs

Year: 2006
Make: Mitsubishi
Model: Eclipse
Trim: GT
Engine: 3.8L V6, 24 valve
Horsepower: 263@5750 hp
Transmission: 6 Speed Manual
Torque: 260 lb-ft @ 4500 rpm
0-60 mph : 5.8 sec.
Redline: 6500 rpm
Top speed: Top speed : 148 mph
More Info: Here

Join Slain Designs SilverSpy's Photoshop Site.
Join xDesignSx My Photoshop tutorial site.
0

Page 1 of 1
  • You cannot start a new topic
  • {lang:pm_locked} This topic is locked

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users