View Single Post
  #1 (permalink)  
Old 11-19-2007, 03:53 PM
subwoofer717 subwoofer717 is offline
Member
 
Join Date: Nov 2007
Posts: 1
subwoofer717 is on a distinguished road
Help MEEEEEEE! bank project
Hey I need Help on this project im doing! The project is A bank Project my problem is i cant get the code to process the account look at this please help. IS in gui format so carefull i need to withdraw and deposite money help


import javax.swing.*;

public class Bank
{

public static void main(String [] args)
{

//Intro ask questions
JOptionPane.showMessageDialog(null, "Wlcome to the Bank of Java");

String name = JOptionPane.showInputDialog(null," The Bank of Java will need your name," +
"\n" + "Please enter your full name");

String adress = JOptionPane.showInputDialog(null,"The Bank of Java will need your street adress," +
"\n" + "Please enter your full Adress");

String pinNum = JOptionPane.showInputDialog(null, name + " do you have a pinnumber?" +
"\n" + "If Yes press 1" + "\n" + "No press 2");
int num = Integer.parseInt(pinNum);

if(num == 1)
{
String pinNum1 = JOptionPane.showInputDialog(null,"Enter Pin Number");
int num1 = Integer.parseInt(pinNum);
}

else if (num == 2)
{
String answer = JOptionPane.showInputDialog(null,"To make a new Pin Number press 1 to quit press 2");
int num1 = Integer.parseInt(answer);

if(num1 == 1)
{
String newPin = JOptionPane.showInputDialog(null,"Enter a five digit code for your new Pin");
int num2 =Integer.parseInt(newPin);
}

}





}
}
Reply With Quote
Sponsored Links