System.out.println("We will not use 'Hello, World!'"); // is this too cute?
Finally, a third kind of comment can be used to generate documentation automatically. This comment uses a /** to start and a */ to end.
/**
* This is the first sample program in Core Java
* @version 1.01 1997-03-22
* @author webmobileaz
*/
public class FirstSample
{
public static void main(String[] args)
{
System.out.println("We will not use 'Hello, World!'");
}
}
Download Project

0 comments:
Post a Comment