calling setter methods in my main application
<pre><code>package com.intermedix.domain;

public class Login {
      public Login(){}
        private String username;
        private String password;

        public String getPassword() {
            return password;
        }

        public void setPassword(String password) {
            this.password = password;
        }

        public String getUsername() {
            return username;
        }

        public void setUsername(String username) {
            this.username = username;

        }
}
</code></pre>

<p>Can i call the setUsername and setPassword in my main application like this. </p>

<pre><code>Login lg = new Login();
lg.setUsername("somename");
lg.setPassword("somepassword");
</code></pre>

<p>Is this the right way of doing. </p>
