To add a tab to java, this process will be the same as c and java
In C: -
printf("This will display the tab example \t After tab");
In Java: -
System.out.println("This will display the tab example \t After tab");
The same will be for a new line
System.out.println("This will display the New Line example \n Next Line");
Savi nuclear
source share