title: How to initialize multiple variable in single statement?
body: <p>I have below multiple variables.</p>
  <pre><code>JSONObject one = new JSONObject();
  JSONObject two = new JSONObject();
  JSONObject three = new JSONObject();
  </code></pre>
  <p>I tried below way</p>
  <pre><code>JSONObject one, two, three;
  one = two = three = new JSONObject();
  </code></pre>
  <p>It is giving error when I am trying to write on those objects.</p>
  <p><strong>[UPDATE]</strong></p>
  <pre><code>    JSONObject one = null, two = null , three = null ;
      one = two = three = new JSONObject();
      
      one.put(&quot;test&quot;, 1);
  </code></pre>