Results 1 to 2 of 2
  1. #1
    subwoofer717 is offline Member
    Join Date
    Nov 2007
    Rep Power

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



  2. #2
    CaptainMorgan's Avatar
    CaptainMorgan is offline Moderator
    Join Date
    Dec 2007
    NewEngland, US
    Rep Power


    I don't understand what you are asking nor what your problem is. You have a working, compilable, running program that asks a series of trivial questions that requires trivial responses to, then the program simply exits. Where is your code to process the account information? I don't see it, nor do I see any attempt at "withdrawing" or "depositing" money. What is the problem?

Similar Threads

  1. Project Help
    By XxHEXSORxX in forum AWT / Swing
    Replies: 4
    Last Post: 01-28-2009, 11:01 AM
  2. Could anyone help with project?
    By billdara in forum New To Java
    Replies: 1
    Last Post: 03-12-2008, 06:05 PM
  3. First Project Need Big Help
    By earl in forum New To Java
    Replies: 1
    Last Post: 01-18-2008, 07:12 PM
  4. Code bank
    By Eranga in forum Suggestions & Feedback
    Replies: 2
    Last Post: 01-01-2008, 06:23 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts