Re: Command-line arg



Stefan Ram wrote:
Wayne <nospam@xxxxxxxxxxxxxx> writes:
public static void main(String[] args)

Technical specifications could be more precise and either use a specific import declaration or »java.lang.String«:

The JLS mentions this in §1.2 Notation:
Throughout this book we refer to classes and interfaces drawn from the Java and Java 2 platforms. Whenever we refer to a class or interface which is not defined in an example in this book using a single identifier N, the intended reference is to the class or interface named N in the package java.lang. We use the canonical name (§6.7) for classes or interfaces from packages other than java.lang.

Thus the class `String' implicitly refers to `java.lang.String'


--
Beware of bugs in the above code; I have only proved it correct, not tried it. -- Donald E. Knuth
.



Relevant Pages

  • Re: "call to super must be first statement in constructor"
    ... I'm starting to find out some weird things about Java -- well, ... unnecessarily narrow use of interfaces. ... The package seems to be too large a unit of subdomain development. ... "protection" within a package at all. ...
    (comp.lang.java.help)
  • Re: package and jar files
    ... > What is the difference between package and jar files and do you use them? ... The Java Tutorial describes jars, ... "A collection of related classes and interfaces providing access ...
    (comp.lang.java.programmer)
  • Re: Return flexible number of data structures
    ... Well we have far more COBOL programmers here than Java ones, ... COBOL is more maintainable. ... and a PrintJob and a Doc, all Interfaces in package javax.print (since java ...
    (comp.sys.ibm.as400.misc)
  • Re: Interface implementations
    ... Sparko wrote: ... can I then refer to these statics in the ... > implementing class or are they only available within an interfaces ... You should use a class for it, and then refer to ...
    (comp.lang.java.programmer)
  • Re: Help with ipfw
    ... >> interfaces. ... Is there any way I can set up this simple ipfw script without ... So I just refer to 'any'? ... ipfw add allow tcp from any to any 22 ...
    (comp.unix.bsd.freebsd.misc)