Passing args from main class
<p>I'd like to ask easy question for somebody else but not me - 'cause i'm beginner.
I have a bit problem with passing arguments from 'main' to variable "server" under "public JavaApplication6()"
Simple code to make it clear:</p>

<pre><code>public final class JavaApplication6 {
String server;
    public static void main(String[] args) throws IOException {
    }
    public  JavaApplication6() {
        server=main(args[0]);  ??                            //here is the problem - how to pass ?
    }
}
</code></pre>

<p>for example if i run this appplication with arguments "java JavaApplication6 someargument" under cmd i'd like to assign string someargument to variable 'server' so it would be :
server==someargument and then for example with System.out.println(server) display string 'someargument'.</p>

<p>Thank you in advance</p>
