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.

Your Answer:

Feedback

Your feedback will appear here when you check your answer.