Results 1 to 2 of 2
Thread: Help MEEEEEEE! bank project
- 11-19-2007, 01:53 PM #1
Member
- Join Date
- Nov 2007
- Posts
- 1
- Rep Power
- 0
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);
}
}
}
}
- 12-25-2007, 09:08 AM #2
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
-
Project Help
By XxHEXSORxX in forum AWT / SwingReplies: 4Last Post: 01-28-2009, 10:01 AM -
Could anyone help with project?
By billdara in forum New To JavaReplies: 1Last Post: 03-12-2008, 05:05 PM -
First Project Need Big Help
By earl in forum New To JavaReplies: 1Last Post: 01-18-2008, 06:12 PM -
Code bank
By Eranga in forum Suggestions & FeedbackReplies: 2Last Post: 01-01-2008, 05:23 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks