How to insert multiple tabs string in java?
java, string
Solution
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.
Problem
How to insert multiple tabs string in Java? This example: `getName() + '\t' + '\t' + getLastName()`, does not work.