Using a class with int in main()
<p>I want to write a class with three int values in them and manipulate them in main();</p>

<p>There are two ways I can think of doing this </p>

<ol>
<li>Have a seperate .class file and include it into another class file containint the main() function</li>
</ol>

<p>stuff.java:</p>

<pre><code>class stuff { ... }

class app {

public static void main(String[] arguments) {
   .. // manipulate the instance variables
     }
}
</code></pre>

<p>2 have the class and then a class containint the main function in the same file app.java</p>

<p>app.java:</p>

<pre><code>class stuff { ... }

class app {

public static void main(String[] arguments) {
   .. // manipulate the instance variables
     }
}
</code></pre>

<p>Are these the main ways it is done in java ( I didn't see anything on including java classes ). Or can I make the stuff class contain main itself?</p>
