. Advertisement .
..3..
. Advertisement .
..4..
Hi there! I’m using Java. I need add some space in my string. How To Add Space In Between String In Java ?
Here is specific Sample:
String s = "%s Hellow World!";
StringBuilder builder = new StringBuilder();
for(int i=0;i<10;i++){
builder.append(" ");
}
System.out.println(s.format(s,builder.toString()));
There is a simple solution