September 7th, 2013, 06:46 PM
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:
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);
September 7th, 2013, 06:59 PM
Note that you have the header for the main method before isUpperCase.