Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Else Error (Total newcomer)(Syntax error when trying to use else )
Else Error (Total newcomer) [message #1001149] Wed, 16 January 2013 01:17 Go to next message
Sean Wirth is currently offline Sean Wirth
Messages: 1
Registered: January 2013
Junior Member
Hi friends,

I just started taking a intro to java programming course for my major programming requirement and I'm having trouble using "else" when I'm trying to make if statements.

Every time I type in "else" it gives me the error "Syntax error on token, "else," Delete this token"

I've been watching videos and I'm really trying to get a leg up on the class and really get an understanding of java and eclipse because I've always liked the idea of being able to program using java.

Any help would be greatly appreciated!
Re: Else Error (Total newcomer) [message #1001355 is a reply to message #1001149] Wed, 16 January 2013 09:48 Go to previous messageGo to next message
Russell Bateman is currently offline Russell Bateman
Messages: 3153
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 1/16/2013 6:31 AM, Sean Wirth wrote:
> Hi friends,
> I just started taking a intro to java programming course for my major
> programming requirement and I'm having trouble using "else" when I'm
> trying to make if statements.
>
> Every time I type in "else" it gives me the error "Syntax error on
> token, "else," Delete this token"
>
> I've been watching videos and I'm really trying to get a leg up on the
> class and really get an understanding of java and eclipse because I've
> always liked the idea of being able to program using java.
>
> Any help would be greatly appreciated!

First, this is a Java not an Eclipse question. Java questions are better
referred to forums for that purpose, some include javaranch.com,
jguru.com and stackoverflow.com.

Second, it's pretty hard to play compiler for you when you don't submit
any code to look at.
Re: Else Error (Total newcomer) [message #1003613 is a reply to message #1001355] Mon, 21 January 2013 11:03 Go to previous message
David Kerber is currently offline David Kerber
Messages: 100
Registered: July 2009
Senior Member
In article <kd6eno$kvs$2@xxxxxxxxe.org>, russ@xxxxxxxx
says...
>
> On 1/16/2013 6:31 AM, Sean Wirth wrote:
> > Hi friends,
> > I just started taking a intro to java programming course for my major
> > programming requirement and I'm having trouble using "else" when I'm
> > trying to make if statements.
> >
> > Every time I type in "else" it gives me the error "Syntax error on
> > token, "else," Delete this token"
> >
> > I've been watching videos and I'm really trying to get a leg up on the
> > class and really get an understanding of java and eclipse because I've
> > always liked the idea of being able to program using java.
> >
> > Any help would be greatly appreciated!
>
> First, this is a Java not an Eclipse question. Java questions are better
> referred to forums for that purpose, some include javaranch.com,
> jguru.com and stackoverflow.com.
>
> Second, it's pretty hard to play compiler for you when you don't submit
> any code to look at.

All that said, you're probably missing some curly braces.
Previous Topic:Using external jar file from eclipse plugin
Next Topic:Hibernate mapping
Goto Forum:
  


Current Time: Thu Aug 28 01:35:18 EDT 2014

Powered by FUDForum. Page generated in 0.31666 seconds