It' looks like a method. Which class did you find it in?

According to the JLS goto is a reserved word, so the answer to "what use is goto(x,y)?" Is "you use it generate a compile-time error".

Edited 9 Months Ago by JamesCherrill

I believe it was used in Turbo C and Turbo Pascal in the previous century. It adresses the terminal's screen positions.

Goto sounds to an old way to do jumps in the code. This was substitute a long time ago for conditionals (if).

@Raul Perez: in case you did not notice, this thread is not about a goto statement, but about a "screen coordinate specifier". If my memory serves me well it was even called gotoxy(X,Y) instead of goto(X,Y), but small dialect differences (with no standards) could always sneak in back in those middle age days. :)

@ddanbe: you are right, I was trying to give the matter another point of view in case our friend needed.

To be fair, the assumption about it being a console command is just that, an assumption. There's absolutely nothing from the OP that even hints about console. Maybe it's a graphics command, maybe it selects coordinates for viewing a location in Google Earth.
The only thing we can be sure of is that it's not Java

@James: most of the terminals in the 70 80ties where not what I would call graphical. So I may be terribly wrong but IMHO the OP is referring to something like this. and you are absolutely correct, it is not Java or whatever. It is history. But it's a pity it is still in use on this planet.

Maybe he is, but that's a guess based on zero evidence. OP says nothing to indicate that particular use of a goto method. A quick google excluding the irrelevant gotoxy first comes up with uses in the Turtle teaching language and the ArcGIS geographical data analysis package. Let's keep an open mind and wait to see if he ever comes back.

This article has been dead for over six months. Start a new discussion instead.