#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2013
    Posts
    4
    Rep Power
    0

    A Paradoxed error


    I have to do a boolean program that recognizes vowels. I've fixed the majority of the errors, except for this one. I'm stuck in a paradox that I need to put a semicolon at the end of my main method, well if I do then it ill come up as there is no main method or abstract. I've checked to see if the rest of my code is correct and it is. I do not have out of place brackets or parenthesis. It has become quite frustrating because I have other parts to do, and I won't be able to move on until this is fixed.

    here is my code:

    class assignment_1a
    {
    public static void main(String[] args)
    public static boolean isUpperCase(char ch)

    {
    if ('c' == 'A' ? true : 'c' == 'E');

    else if ('c' == 'E' ?true: 'c' == 'I');

    else if ('c' == 'I' ?true: 'c' == 'O');

    else if ('c' == 'O' ?true: 'c' == 'U');

    else if ('c' == 'U' ?true: false);

    return false;

    }

    }
  2. #2
  3. Java Junkie
    Devshed Specialist (4000 - 4499 posts)

    Join Date
    Feb 2004
    Location
    Mobile, Alabama
    Posts
    4,023
    Rep Power
    1285
    Note that you have the header for the main method before isUpperCase.

IMN logo majestic logo threadwatch logo seochat tools logo