Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-19-2007, 02:53 PM
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);
}

}





}
}
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 12-25-2007, 10:08 AM
CaptainMorgan's Avatar
Moderator
 
Join Date: Dec 2007
Location: NewEngland, US
Posts: 839
CaptainMorgan will become famous soon enoughCaptainMorgan will become famous soon enough
Send a message via AIM to CaptainMorgan
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?
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Could anyone help with project? billdara New To Java 1 03-12-2008 06:05 PM
Project Help XxHEXSORxX AWT / Swing 1 02-17-2008 01:46 AM
Ant Project JavaForums Java Blogs 0 02-16-2008 11:53 PM
First Project Need Big Help earl New To Java 1 01-18-2008 07:12 PM
Code bank Eranga Suggestions & Feedback 2 01-01-2008 06:23 AM


All times are GMT +3. The time now is 07:51 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org