You can shorten down your code by providing an expression in the return statement itself, like, if the expressions value is true, true will be returned and if the value of expression is false, false will be returned.
These are the few ways you can approach towards this problem,
1.
boolean atLeastTwo(boolean a, boolean b, boolean c) {
return a ? (b || c) : (b && c);
}
2.
boolean atLeastTwo(boolean a, boolean b, boolean c) {
return a && (b || c) || (b && c);
}
3.
boolean atLeastTwo(boolean a, boolean b, boolean c) {
return a ^ b ? c : a
}