Difference between revisions of "Java program template"

From WLCS
 
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
This is an example Java template for the the main method:
 
This is an example Java template for the the main method:
  
<source lang="java">
+
<syntaxhighlight lang="java">
// JavaTemplate.java
+
// JavaTemplate.java <- filename should match name of class exactly
 
public class JavaTemplate
 
public class JavaTemplate
 
{
 
{
Line 10: Line 10:
 
     }
 
     }
 
}
 
}
</source>
+
</syntaxhighlight>

Latest revision as of 07:10, 23 April 2012

This is an example Java template for the the main method:

// JavaTemplate.java <- filename should match name of class exactly
public class JavaTemplate
{
    public static void main(String[] args) 
    {
        // INSERT CODE HERE
    }
}