What is the best method to define veriables in java? <p>I have a question for you guys today. I've been working with java in a year now, and since java formatting can be done how you want, I'm now seeking the optimal method to define variables :-)</p> <p>Let's say I want to create a new class with some fields:</p> <pre><code>public class Email { private String from, to, date, subject, content; public Email(String from, String to, String date, String subject, String content ) { this.from = from; // and so on... </code></pre> <p>Would that be better than doing it line for line like this?</p> <pre><code>public class Email { private String from; private String to; private String date; private String subject; private String content; </code></pre>