The professional, friendly Java community. 21,500 members and growing!

The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.

I cannot get this program to run. It seems that I can not use the < or > sign with my variable char. I thought that ch was primitive and I could use those signs but I am very new to this language and I am sure I am doing something wrong. I am trying to get the first letter of a string and find out if it is a letter and a vowel. No rush not due until Friday plus I will ask my instructor tomorrow if no one responds.
Thank You.

Re: Need some help on my HS Project

The method charAt(); returns a char. You are trying to store it in a String variable. So your String ch is not of a compatible type with your charAt() method. You can use those two symbols one you fix your variable type that should right itself. Also get rid of your second main method.