X24: blackjack

Write a function in Java that implements the following logic: Given 2 int values greater than 0, return whichever value is nearest to 21 without going over. Return 0 if they both go over.

Reset

Practice a different Java exercise