Advertisement
JeffGrigg

Untitled

Apr 13th, 2024
1,404
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 5 0.38 KB | None | 0 0
  1. public class ArrowAntiPattern {
  2.  
  3.     public static String checkGrade(final int score) {
  4.         if (score >= 90) {
  5.             return "A";
  6.         } else if (score >= 80) {
  7.             return "B";
  8.         } else if (score >= 70) {
  9.             return "C";
  10.         } else if (score >= 60) {
  11.             return "D";
  12.         } else {
  13.             return "F";
  14.         }
  15.     }
  16. }
  17.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement