/* Block comment */
import java.util.Date;
/**
* Doc comment here for <code>SomeClass</code>
* @see Math#sin(double)
*/
@Annotation (name=value)
public class SomeClass<T extends Runnable> { // some comment
private T field = null;
private double unusedField = 12345.67890;
private UnknownType anotherString = "Another\nStrin\g";
public static int staticField = 0;
public SomeClass(AnInterface param, int[] reassignedParam) {
int localVar = "IntelliJ"; // Error, incompatible types
System.out.println(anotherString + toString() + localVar);
long time = Date.parse("1.2.3"); // Method is deprecated
int reassignedValue = this.staticField;
reassignedValue ++;
field.run();
new SomeClass() {
{
int a = localVar;
}
};
reassignedParam = new ArrayList<String>().toArray(new int[0]);
}
}
enum AnEnum { CONST1, CONST2 }
interface AnInterface {
int CONSTANT = 2;
void method();
}
abstract class SomeAbstractClass {
}
Last active
August 29, 2015 14:04
-
-
Save thuytrinh/b08fdb459734e20123d9 to your computer and use it in GitHub Desktop.
A dumb java file in IntelliJ's Preferences used to show Colors and Fonts
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment