Search:

Type: Posts; User: javapenguin

Search: Search took 0.14 seconds.

  1. Replies
    7
    Views
    4,238

    Re: help! simple ATM

    for(int i = 0; i < transactions.length-1; i++)
    {
    if(transactions[i] == 0)
    {
    position = i;
    break;
    }
    }

    It appears that you're skipping the last index in the array.
  2. Replies
    7
    Views
    4,238

    Re: help! simple ATM

    If sum is the amount of money they are putting in, shouldn't it be double?

    What if someone puts in $200.95?
  3. Replies
    7
    Views
    4,238

    Re: help! simple ATM

    import java.util.Scanner;


    public class BankoMat
    {

    public static void main(String[] args)
    {
    Scanner keyboard = new Scanner(System.in);
Results 1 to 3 of 3