print in one line in java

Java
1
for
rof
Source

Also in Java: