public class NameSpace {
private static final int NAME_SPACE = 0;
private static int name_space;
private int nameSpace;
private float floatTest = 0.1f; // some people put a capital 'f' like 0.1F
private double doubleTest = 0.1D; // some people put a lowercase 'd' like 0.1d
private void nameSpace(int nameSpace) {
this.nameSpace = nameSpace;
}
public static int nameSpace(boolean nameSpaceBool) {
return nameSpaceBool ? 1 : name_space;
}
public void lotsOfIfs() {
if (nameSpace < 1) {
nameSpace = 1;
} else if (nameSpace > 1) {
nameSpace = 2;
} else {
nameSpace = 0;
}
}
private int someMath(int a, int b) {
return (a * b) + (a / b) - (a * a); // some people don't put those parenthesis
}
}
These are my conventions, i’m not sure if I covered all convention issues however so if you think of another convention please include it in your reply