Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to insert multiple tabs string in java? [closed]

Tags:

java

string

How to insert multiple tabs string in java?

ex : getName() + '\t' + '\t' +getLastName()" Doesn't work. Please Help!!

like image 720
user2646617 Avatar asked Nov 30 '22 12:11

user2646617


1 Answers

Your example should work; however there's no reason to append each tab character individually. This works, too:

getName() + "\t\t" + getLastName();

The errors you are getting are not related to the tab characters.

like image 188
Marko Topolnik Avatar answered Dec 03 '22 23:12

Marko Topolnik