title: How to add a space between two strings using StringBuilder in Java?
body: <p>i am practicing <code>StringBuilder</code> in java and I want to know that if I want to add a space in two strings what method should i use?</p>
  
  <pre><code>public class StringPractice {
  
  public static void main(String[] args) {
  
      StringBuilder buffer1 = new StringBuilder();
      String id = "333";
      String name = "Abdur Rehman Khalid";
      buffer1.append(id);
      buffer1.append(name);
      System.out.println(buffer1.toString());
  }
  
  }
  </code></pre>
  
  <p>Output I get:</p>
  
  <pre><code>333Abdur Rehman Khalid
  </code></pre>
  
  <p>Expected output: </p>
  
  <pre><code>333 Abdur Rehman Khalid.
  </code></pre>