Originally Posted by
Junky
I've posted this challenge once before when someone was asking for extra exercises to practice their Java skills.
Write the following methods add, subtract, multiply, divide, mod and pow without using any mathematical symbols (one concession is you can use a bitwise operator for subtract when the first operand is less than the second operand ie negative result). You can use the following method:
private int increment(int i) {
return ++i;
}
I did have a solution but somehow deleted it.
So, is this a challenge for now?