Assignment 105; Evenness

Code

    // Donovan Rich
    // Period 6
    // Evenness Method
    // Evenness.java
    // 3/31/2016
    
    public class Evenness
    {
        public static void main(String[] args)
        {
            for (int x = 2; x <= 20; x = x + 1)
            {
                System.out.print(x);
                if (isEven(x) == true)
                    System.out.print("<");
                if (isDivis3(x) == true)
                    System.out.print("=");
                System.out.println();
            }
        }
        public static boolean isEven(int n)
        {
            if ( n%2 == 0 )
                return true;
            else
                return false;
            
        }
        public static boolean isDivis3(int n)
        {
            if ( n%3 == 0)
                return true;
            else
                return false;
        }
            
    } 
        

Picture of the output