goto command

S

Shawn

I am having problems using this right now.. I am using Jgrasp.. and it
sais

imphours.java:28: illegal start of expression
goto start;

goto start; is my command... I was wondering if it was something
different.

Also I want to know if I go goto start... how do I enter start in my
program without making it go

imphours.java:203: not a statement
end;
 
M

Michael Borgwardt

Shawn said:
I am having problems using this right now.. I am using Jgrasp.. and it
sais

imphours.java:28: illegal start of expression
goto start;

goto start; is my command...

Then you should goto a newsgroup appropriate for whatever language
you're programming in, and use a compiler or interpreter appropriate to
that language.

Neither this Newsgroup nor the Java compiler are appropriate from
something that has "goto" or "end" commands.
 
B

Bryce

I am having problems using this right now.. I am using Jgrasp.. and it
sais

imphours.java:28: illegal start of expression
goto start;

goto start; is my command... I was wondering if it was something
different.

While the "goto" statement is a reserved word in Java, it isn't used.
Besides, didn't your computer sci teachers ingrane in you the evils of
the goto statement?
Also I want to know if I go goto start... how do I enter start in my
program without making it go

what the heck is start? Is it a method? What? Post your code.
 
C

Carl

Bryce said:
While the "goto" statement is a reserved word in Java, it isn't used.
Besides, didn't your computer sci teachers ingrane in you the evils of
the goto statement?




what the heck is start? Is it a method? What? Post your code.

YHBT. YHL. HAND.
 
T

Thomas G. Marshall

Bryce coughed up:

....[thwack]...
While the "goto" statement is a reserved word in Java, it isn't used.
Besides, didn't your computer sci teachers ingrane in you the evils of
the goto statement?

Which should remain evil until you start to know what you're doing. At
which point, as long as it jumps downward in very precise ways, it's s'ok
peachy-keen. In Java, at least, the goto (named break) only flows downward
in that way.

....[rip]...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,743
Messages
2,569,478
Members
44,898
Latest member
BlairH7607

Latest Threads

Top