Can someone help me convert the following java code which is in a GUI format into a text based interface?

Printable View