0

How to print a space in java?

5th Jul 2017, 2:33 PM
suryapoojary
suryapoojary - avatar
5 Respostas
+ 4
" " Contains a space. System.out.print(" ");
5th Jul 2017, 3:00 PM
Rrestoring faith
Rrestoring faith - avatar
+ 4
You need to add a space between the quotes. " " not ""
5th Jul 2017, 3:31 PM
Rrestoring faith
Rrestoring faith - avatar
+ 1
System.out.println(" "); or System.out.println("\t");
5th Jul 2017, 3:25 PM
akriti more
akriti more - avatar
0
So.. System.out.println("hi" + "" + "guys") prints hi guys?
5th Jul 2017, 3:29 PM
suryapoojary
suryapoojary - avatar
- 1
Alrighty @faith
5th Jul 2017, 3:52 PM
suryapoojary
suryapoojary - avatar