Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class ArrowAntiPattern {
- public static String checkGrade(final int score) {
- if (score >= 90) {
- return "A";
- } else if (score >= 80) {
- return "B";
- } else if (score >= 70) {
- return "C";
- } else if (score >= 60) {
- return "D";
- } else {
- return "F";
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement