Search:

Type: Posts; User: Norm

Search: Search took 0.11 seconds.

  1. Thread: basic question

    by Norm
    Replies
    17
    Views
    1,081

    Re: basic question

    No.
    String[] args defines args as a variable that can refer/point to ANY sized single array.
    For example:

    String[] args = {"a", "B"};
    args = new String[4];
    args = new String[] {"a"};

    On...
  2. Thread: basic question

    by Norm
    Replies
    17
    Views
    1,081

    Re: basic question

    BTW .java looks like a source file extension.
    If the Foo class is not in a package, the command line would be:
    java Foo
  3. Thread: basic question

    by Norm
    Replies
    17
    Views
    1,081

    Re: basic question

    Often it's because there was an arbitrary decision made by the programmer. Somewhere back in history a programmer decided that the method to start the execution of a program should be named main....
  4. Thread: basic question

    by Norm
    Replies
    17
    Views
    1,081

    Re: basic question

    The tutorial is a good place to look for how to do things.
    For example for methods: Defining Methods (The Java™ Tutorials > Learning the Java Language > Classes and Objects)
Results 1 to 4 of 4