|
-
February 22nd, 2012, 11:33 AM
#1
Need help with a code for an ATM program
Hi im a beginner at this stuff but i want to be able to understand everything thats going on and not have to keep posting on here lol
on that note im creating an ATM program in class, pretty simple one that does deposit, withdrawal and views the account balance but i cant seem to get past the configuration for the pin number input help? im using eclipse
this is what i have so far:
public static void main(String args[]) {
{
int cardnumber;
int pinNumber;
char accountType;
boolean anotherTransaction;
// ask user for Card
System.out.println("Please slide your card in the reader below");
//bring in user card number
// ask user for pin
System.out.println("Please enter your PIN number and hit enter");
String name= JOptionPane.showInputDialog("Please Enter Your pinNumber");
//check PIN number for validity
importjavax.swing.JOptionPane
importjava.util.Scanner;
int inumber=integer.parseint(pinNumber);
string pinNumber = Interger.parseint(pinNumber);
if iNumber >=0001 && iNumber <= 9999;
System.out.println(iNumber);
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|