class MathOperators{
private String[] operator = {"postfix", "unary", "arithmetic", "Shift", "relational", "bitwise", "logical", "ternary", "assignment"};
private String myMnemonic;
MathOperators(String title){
myMnemonic = title;
}
public void postfixAndPrefixOperators(){
System.out.println(operator[0] + " operators");
System.out.println("I am the top of the chain. Below is from left to right");
System.out.println("x++ \t" + "x-- \t" + "++x \t" + "--x");
}
public void unaryOperators(){
System.out.println(operator[1] + " operators");
System.out.println("I am next to the top. Below is from left to right");
System.out.println("+x \t" + "-x \t" + "~ \t" + "! \t");
}
public void arithmeticOperators(){
System.out.println(operator[2] + " operators");
System.out.println("I am third to the top. Below is from left to right");
System.out.println("* \t" + "/ \t" + "% \t" + "+ \t" + "- \t");
}
public void shiftOperators(){
System.out.println(operator[3] + " operators");
System.out.println("I am the fourth. Below is from left to right");
System.out.println("<< \t" + ">> \t" + ">>> \t");
}
public void relationalOperators(){ System.out.println(operator[4] + " operators");
System.out.println("I am the fifth. Below is from left to right");
System.out.println("< \t" + "> \t" + "<= \t" + ">= \t" + "instanceof \t" + "== \t" + "!= \t");
}
public void bitwiseOperators(){
System.out.println(operator[5] + " operators");
System.out.println("I am the sixth man. Below is from left to right");
System.out.println("& \t" + "^ \t" + "| \t");
}
public void logicalOperators(){
System.out.println(operator[6] + " operators");
![](https://img.wattpad.com/cover/193437798-288-k96a015.jpg)
YOU ARE READING
Java codes i learned online
RandomThis is just my notes to record everything i learned about java. You can read it if you want.. You can correct me if i am wrong but please do not be too harsh on me. i am just a newbie in programming. I will start schooling this July 15, 2019.. and...