Difference between revisions of "Java program template"
From WLCS
m (Protected "Java program template" ([edit=sysop] (indefinite) [move=sysop] (indefinite))) |
|||
(One intermediate revision 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: | ||
− | < | + | <syntaxhighlight lang="java"> |
− | // JavaTemplate.java | + | // JavaTemplate.java <- filename should match name of class exactly |
public class JavaTemplate | public class JavaTemplate | ||
{ | { | ||
Line 10: | Line 10: | ||
} | } | ||
} | } | ||
− | </ | + | </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
}
}