title: Java hasmaps for login system
body: <p>im creating a basic banking system using java swing and im using hashmaps to store login information the login system works perfectly but im wondereing if i can add account cash balances for each user(key) in the hashmap below is my id and passwords class im just wondering if there is anything i can add to achieve the result i want.</p>
  <pre><code>
  public class IdandPasswords {
  
      // create hashmap
      HashMap&lt;String,String&gt; logininfo = new HashMap&lt;String,String&gt;();
      
      IdandPasswords() {
          logininfo.put(&quot;admin&quot;, &quot;admin&quot;);
          
      }
      
      
      protected HashMap getlogininfo() {
          return logininfo;
      }
      public void setidpass(String pass , String ID) {
          this.logininfo.put(pass, ID);
      }
  
  }
  </code></pre>