In fact, you cannot change the font size in a text terminal. There is no such information sent to the terminal upon your request. (Only streaming text is sent through the stream). This is possible and easy in graphical applications created in Java and managed by the Java API. Before you start with them, I suggest you start with simple books or Java tutorials.
Java programming language basics, part 1
By the way, this is the code that can do your task (excluding changing the font size or font style)
import java.io.*; public class Main { public static void main(String[] args) throws IOException { BufferedReader br =new BufferedReader(new InputStreamReader(System.in)); String name = br.readLine(); System.out.print("Name: "+name); } }
The only thing that can be changed using the eclipse console is the font color of the output stream and the error stream. (Right click on the console screen and settings)
source share