This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes Java in General and the fly likes How to PRINT @posX Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "How to PRINT @posX" Watch "How to PRINT @posX" New topic

How to PRINT @posX

bob connolly
Ranch Hand

Joined: Mar 10, 2004
Posts: 204

Is there a way to specify where to print on a line?

For example, if i have a variable name and want to print it's value @ position 12, is there a class to handle that?

Thanks much!
Nick George
Ranch Hand

Joined: Apr 04, 2004
Posts: 815

I've heard it takes forever to grow a woman from the ground
Junilu Lacar

Joined: Feb 26, 2001
Posts: 6264

If you are printing to an ANSI terminal, you could try using ANSI codes.

Junilu - [How to Ask Questions] [How to Answer Questions]
bob connolly
Ranch Hand

Joined: Mar 10, 2004
Posts: 204
Thanks all, got it!

subject: How to PRINT @posX
It's not a secret anymore!