Multiple Spaces between words in Java
807580Jul 23 2010 — edited Jul 23 2010Hi All
String s1 = "boy";
String s2 = "girl";
String s = s1 + "multiple spaces through keyboard spacebar writing this because when this is posted it will not be visible in the browser" + s2;
system.out.println(s);
I need to have multiple spaces between s1 and s2 and need to be shown in the browser(IE) in java.
If it is a html code, I found we can use <pre> tag,
Thanks