×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Java
Posted by: James Yakura
Added: Dec 4, 2017 10:40 PM
Views: 2
Tags: no tags
  1.     /**
  2.      * Checks whether a number is odd.
  3.      * @param number The number to check.
  4.      * @return Whether the number is odd.
  5.      */
  6.     public static boolean isOdd(int number)
  7.     {
  8.         return number%2==1;
  9.     }