sweet1cris

Untitled

Feb 5th, 2018
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.38 KB | None | 0 0
  1. public class Solution {
  2.     /**
  3.      * @param a an integer
  4.      * @param b an integer
  5.      * @param c an integer
  6.      * @return an integer
  7.      */
  8.     public int maxOfThreeNumbers(int a, int b, int c) {
  9.         if (a >= b && a >= c) {
  10.             return a;
  11.         } else if (b >= a && b >= c) {
  12.             return b;
  13.         } else {
  14.             return c;
  15.         }
  16.     }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment