How can I adjust the text entry position in JAVA?

0

I have the following code:

System.out.println("");
                System.out.println("SELECCIONE UN MODO PARA LA GENERACION DEL REPORTE:");
                System.out.println("");
                System.out.println("1. MENSUAL");
                System.out.println("2. PERSONALIZADO");
                System.out.println("");
                System.out.println("SELECCIONE UNA OPCION: ");

I wish that when selecting an option (which is already configured through SWITCH) it can be seen in the following way on the screen:

SELECCIONE UNA OPCION: "aqui se digita la opcion"

Currently the cursor is below the text "SELECT AN OPTION".

How can I adjust the cursor so that it is in front of the text that I want? The app is developed in console mode, has no graphical interface.

    
asked by Cristian Camilo 10.07.2017 в 14:44
source

1 answer

5

Uses the method that does not perform line break after displaying the message

System.out.print("SELECCIONE UNA OPCION: ");

More information

System.out

    
answered by 10.07.2017 в 14:53