Users of the console device that implement e.g. command line tools find it sometimes useful to be able to query its width and height.
As Java already offers an abstraction of the console via java.io.Console, it would be a logical thing to offer a getWidth() and getHeight() method for this.
As Java already offers an abstraction of the console via java.io.Console, it would be a logical thing to offer a getWidth() and getHeight() method for this.