How do you add spaces in java?
Answer / Vivek Kumar Singh
You can add a space character in Java by using the ' ' symbol. To print multiple spaces, you can use the space character multiple times: System.out.print(" "); or you can use the String format method: System.out.printf("%10s", ""); to add a specific number of spaces.
| Is This Answer Correct ? | 0 Yes | 0 No |
Can sleep() method causes another thread to sleep?
Can static methods be overridden?
What is difference between static variable and global variable?
what is platform independence in java?
in a console we r giving java <class name> if r pressing enter where it'll goes
Can subclass overriding method declare an exception if parent class method doesn't throw an exception?
What is the use of arrays tostring () in java?
if a java file without any source code is valid java file?
What is a nullable field?
why applet doesn't have main? isn't possible a program with out main?
What is prime number in java?
What is int lol?