New Java's Profile User Rating: -----

Reputation: 0 Apprentice
Group:
New Members
Active Posts:
5 (0.01 per day)
Joined:
12-January 12
Profile Views:
371
Last Active:
User is offline Jan 15 2012 03:31 PM
Currently:
Offline

Previous Fields

Dream Kudos:
0
Icon   New Java has not set their status

Posts I've Made

  1. In Topic: Theres an error here in my code!

    Posted 15 Jan 2012

    View PostGregBrannon, on 15 January 2012 - 01:33 AM, said:

    First you say,

    Quote

    whats the error in here? everytime i run this program even though there are no red underlines and signs still, it say theres an error in here ...

    Then you say,

    View PostNew Java, on 15 January 2012 - 03:24 AM, said:

    sir as i have said there are no red lines showing in my program its just that i think that some of my if else of the braces are placed on the wrong place and i have checked it multiple times but cant seem to understand why its not running the way i want it to run..

    I'm not asking about red squigglies. I'm asking about "it says(s) there's an error . . ." What does 'it' say the error is? Copy and paste it.





    hello there sir!
    i have solved the error, that is coming out, but the thing that i havent solve yet is here:

    if(a.equalsIgnoreCase(B)/>)
    	{
    	{
    	 JOptionPane.showMessageDialog(null, "Your Balance is: ","BALANCE INQUIRY"+ bal,JOptionPane.PLAIN_MESSAGE );
    		
    	bal=bal+deposit;
    		}
    		ans=JOptionPane.showConfirmDialog(null, "Would you like to generate bank slip?","Generate Bank Slip",JOptionPane.YES_NO_OPTION);
    	
    		 if (ans == 1);
    		{	 //no
    	trans =JOptionPane.showConfirmDialog(null,"Would You Like Another Transaction?","Another Transaction",JOptionPane.YES_NO_OPTION);
    		
    	if (trans == 1)
    		
    		{
    		JOptionPane.showMessageDialog(null, "Thanks For Using My Program!!");
    		System.exit(0);
    		}
    
    		else if (trans == 0)
    		{ 
    			 b =(JOptionPane.showInputDialog(null, "Automatic Teller Machine\n [B] Balance Inquiry\n [D]Deposit\n [W] Withdrawal\n [Q] Quit\n Select you Options:  ","Automatic Teller Machine",JOptionPane.PLAIN_MESSAGE));
    		}
    		
    		
    		else if   (ans == 0); // yes
    		{	JOptionPane.showMessageDialog(null, "BALANCE INQUIRY \n AMOUNT BALANCE: "+ bal+ "\nPrinting Bank slip.....");
    		
    		}
    		}
    		}
    


    when i choose the option deposit i should be able to input number then after that,it will ask me if i want to generate bank slip,

    if i say "yes"
    Deposit
    DEPOSIT AMOUNT: (the deposit thta i have inputted)
    Printing Book slip......

    if i say no, it will ask me if i want to have another transaction if "yes" it will go back to the main menu, if no it will exit.


    but for example.
    i deposited 5000
    when i do another transaction and choose balance, my balance should be 5000 as well, and when i do another transaction again and choose withdraw and i withdrawed 500
    my balance should be 4500

    same thing goes for the other transactions

    please sir help me, it will be pass later tonight please tell me what i need to do thank you
  2. In Topic: Theres an error here in my code!

    Posted 15 Jan 2012

    View PostGregBrannon, on 15 January 2012 - 12:43 AM, said:

    Always include the errors, copied and pasted, in your post.


    sir as i have said there are no red lines showing in my program its just that i think that some of my if else of the braces are placed on the wrong place and i have checked it multiple times but cant seem to understand why its not running the way i want it to run..

My Information

Member Title:
New D.I.C Head
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:

Contact Information

E-mail:
Private

Friends

Comments

New Java has no profile comments yet. Why not say hello?