Bad |
Good |
import java.lang.*; |
|
import java.util.*; import java.util.Scanner; |
import java.util.*; |
class MyClass extends Object { } |
class MyClass { } |
class MyClass { int i = 0; boolean b = false; char c = ‚\u0000‘; String s = null; double d = 0.0; } |
class MyClass { int i; boolean b; char c; String s; double d; } |
class MyClass { MyClass() { super(); } } |
class MyClass { MyClass() { } } |
interface MyInterface { public abstract void foo(); } |
interface MyInterface { void foo(); } |
void lollipop() { return; } |
void lollipop() { } |
java.lang.String s; |
String s; |
Object[] param = new Object[ 1 ]; param[ 0 ] = i; |
Object[] param = { i }; |
Something missing?