

public class PlayWithPrimitiveTypes2
{
    
    public static void playWithChar1(char a_char)
    {
        // put your code here
        System.out.println(a_char);
        System.out.println((char) (a_char + 1));
        System.out.println((int) a_char);
    }
    
    public static void playWithChar2(int i)
    {
        // put your code here
        System.out.println(i);
        System.out.println((char) i);
        System.out.println((char) (i - 10));
    }
    
    
    public static void equalTo(int i, int j) {

       boolean b = i == j;
       System.out.println(i + " is equal to " + j + " : " + (b));

    }

    public static void greaterThan(int i, int j) {

       boolean b = i > j;
       System.out.println(i + " is greater than " + j + " : " + (b));

    }

    public static void lessThan(int i, int j) {

       boolean b = i < j;
       System.out.println(i + " is less than " + j + " : " + (b));

    }

    public static void different(int i, int j) {

       boolean b = i != j;
       System.out.println(i + " is different than " + j + " : " + (b));

    }
         
         
         
    public static void bankAccountBalance(int total_entries, int total_expenses){
        System.out.println("The bank account has " + total_entries + "£  entries");
        System.out.println("The bank account has " + total_expenses + "£  expenses");
        System.out.println("The balance is positive: " + (total_entries >= total_expenses));
        
       }
    
    public static void main(String[] args){
        playWithChar1('&');
        playWithChar1('.');
        playWithChar1('4');
        playWithChar1('<');
        playWithChar1('}');
      
        playWithChar2(123);
        playWithChar2(48);
        playWithChar2(43);
        playWithChar2(64);
        playWithChar2(71);
        
        greaterThan('A', 'a');
        greaterThan(4,7);
        greaterThan(7,4);
        greaterThan(3,4);
        
        lessThan(4,7);
        lessThan(8,5);
        
        equalTo(4,7);
        equalTo(3,5);
        equalTo('a', 'A');
        equalTo('A', 65);
        
        
        different(5,8);
        different(5,5);
        
        bankAccountBalance(10000,15000);
        
        
       } 
}

