Created
September 27, 2011 05:35
-
-
Save smtalim/1244408 to your computer and use it in GitHub Desktop.
Sample Java Source file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package java.blah; | |
import java.blah.blahdy.BlahBlah; | |
/** | |
* Class description goes here. | |
* | |
* @version 1.10 27 Sept 2011 | |
* @author Firstname Lastname | |
*/ | |
public class Blah extends SomeClass { | |
/* A class implementation comment can go here. */ | |
/** classVar1 documentation comment */ | |
public static int classVar1; | |
/** | |
* classVar2 documentation comment that happens to be | |
* more than one line long | |
*/ | |
private static Object classVar2; | |
/** instanceVar1 documentation comment */ | |
public Object instanceVar1; | |
/** instanceVar2 documentation comment */ | |
protected int instanceVar2; | |
/** instanceVar3 documentation comment */ | |
private Object[] instanceVar3; | |
/** | |
* ...method Blah documentation comment... | |
*/ | |
public Blah() { | |
// ...implementation goes here... | |
} | |
/** | |
* ...method doSomething documentation comment... | |
*/ | |
public void doSomething() { | |
// ...implementation goes here... | |
} | |
/** | |
* ...method doSomethingElse documentation comment... | |
* @param someParam description | |
*/ | |
public void doSomethingElse(Object someParam) { | |
// ...implementation goes here... | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment