title: Java: Data type similar to javascript object?
body: <p>In java, is there any data type similar to javascript object type where I can store stuff something like we do in javascript.</p>
  
  <p>Here is an object and it contains three arrays inside:</p>
  
  <pre><code>var myObject = {"smsBody": [], "totalSMS": [], "sender": []};
  </code></pre>
  
  <p>I can push data to <strong>individual array items</strong> inside that object:</p>
  
  <pre><code>myObject.totalSMS.push("5");
  myObject.totalSMS.push("10");
  </code></pre>
  
  <p>And then can <strong>loop over them</strong> to get whole data out of an array item:</p>
  
  <pre><code>for (var i = 0; i &lt; myObject.totalSMS.length; i++) {
    alert(myObject.totalSMS[i]);
  }
  </code></pre>
  
  <p>Is there something similar in Java plz? </p>