System.out.println is used for New Line. But, what is used for Tab. Please tell me anyone.
System.out.println
-
in this syntax ( ln ) is used for new line
-
but what syntax is used to give tab in any line
1 Answer
3 years ago by Pankaj
@Pankaj you can use \t
for tab in a line
Check this code https://onecompiler.com/java/3xbk58mtp
System.out.print("word1");
System.out.print("\tword2");
3 years ago by Karthik Divi