I'm new to programming in Java and am currently working on a program to move a theoretical robot. Would it be more efficient/better practice to have a method like
public void turn(String direction, double power) { /* code */ }
or like
public void turnLeft(double power) { /* code */ }
public void turnRight(double power) { /* code */ }
Is it purely up to preference/readability
or is there a standard?