Hi! I initially tried solving this task by declaring an int variable "result", doing the comparisons and setting "result" equal to a/b/c depending on the comparison, and returning "result" at the end of the method. However, even though my code worked, the task wouldn't accept it. So I rewrote it to return a/b/c without the use of a middling variable. if (a <= b) { if (a <= c) { return a; } else { } } else { if (b <= c) { return b; } else { return c; } } } } However, Java got mad and said I wasn't returning a value. I'm not sure why??? I managed to bypass it this way, but it seems kinda sketchy. if (a <= b) { if (a <= c) { return a; } else { } } else { if (b <= c) { return b; } else { } } return c; } } Is there a better/more elegant/less janky way to write this? I'm okay with the logic behind coding, but still pretty bad at Java's syntax.