what is alternate of gotoxy in java?and how to control output screen in java?
If you mean "how do I draw graphics?", this is a big subject for which you need a book or a training course.
My first thought was the Java API tutorials ( http://docs.oracle.com/javase/tutorial/uiswing/index.html ) but that starts with a lot of confusing side issues.
You could try this: http://www.grelf.net/java/page101.html (my own course).
If that page jumps in too deep for you, find the contents page on that site and start higher up.
On the other hand if you just need to know the methods available for drawing on the graphics context, see the API docs for java.awt.Graphics and java.awt.Graphics2D
Your use of this web site or any of its content or software indicates your agreement to be bound by these Terms of Participation.
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.