Going back to start

Hi.. I'm trying to write a program to help some students in the Uni.. and i came up with a little problem.. i want to give the an option dialog

(JOptionPane.showOptionDialog) to ask weathwe they want to try again.. i thought of taking the entire program into a do while loop but it's a no go.. is there a possiblity to use sth like "goto" from VB?

[362 byte] By [Pcproa] at [2007-11-26 18:53:02]
# 1

> Hi.. I'm trying to write a program to help some

> students in the Uni.. and i came up with a little

> problem.. i want to give the an option dialog

> (JOptionPane.showOptionDialog) to ask weathwe they

> want to try again.. i thought of taking the entire

> program into a do while loop but it's a no go..

Why?

>is there a possiblity to use sth like "goto" from VB?

Thankfully, no.

CeciNEstPasUnProgrammeura at 2007-7-9 6:27:04 > top of Java-index,Java Essentials,Java Programming...
# 2
Actually there is a limited form of goto using labeled breaks. But I think it's poor design! It's the best way to create spaghetti! Can you describe your problem in more detail to show us why exactly you need something that dirty?
Peetzorea at 2007-7-9 6:27:04 > top of Java-index,Java Essentials,Java Programming...
# 3
Thankfully i was able to solve it my self.. i changed the design a bit abd actually ade it in a do while loop.. but thx for the help anyway
Pcproa at 2007-7-9 6:27:04 > top of Java-index,Java Essentials,Java Programming...