Search:

Type: Posts; User: TheCoder

Search: Search took 0.08 seconds.

  1. Re: Why is this code giving me an ArrayIndexOutOfBoundException?

    :ar!
    Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0
    at Martina3.CreditCardTest1.main(CreditCardTest1.java:7)
    Java Result: 1
  2. Why is this code giving me an ArrayIndexOutOfBoundException?

    public class CreditCardTest1
    {
    public static void main(String args[])
    {
    String creditCard = args[0].toUpperCase();
    if(creditCard.equals(AllowedCreditCard.VISA.name()))
    ...
Results 1 to 2 of 2