here is my code. I am simply wanting to return the int value if it matches if not I don't want to return anything but it keeps giving me errors saying that I need to add a return statement to my code. I'm new to Java so I don't quite understand why it's not working.
Any help you can provide would be greatly appreciated,
public int faceIndex(String currentWheelFace) {
for (int i = 0; i < wheelFaces.length; i++) {
if (wheelFaces[i] == currentWheelFace) {
return i;
}
}
}