package eco;

public class Farmer {

    public static int fPop = 5;
    public static int fHunger;

    public static int fHunger(int popGroupNumber){
        
        int fHunger = 0;
        fHunger = popGroupNumber*(Util.randInt(9, 10));
        return fHunger;
    }

    public static int fPop(float y) { //Returns the number of farmers in
        int k= 0;
        float x= 0;
        x = y;

        x = ((x) * (1 + Main.wBirthRate - Main.wDeathRate));
       // System.out.println("Farmer pops " + x);

        k = (int)(Math.ceil(x));

        return k;

    }
    public static int checkStarvation(int hungriness, int wheat ){
        int deadpeople;
        int q;
        int e;
        double k;
        double o;
        if(hungriness > wheat){
            o = wheat/11;
            k = hungriness/11;
            e = (int) Math.floor(k);// floors hungirness
            q = (int) Math.floor(o);// floors total wheat
            deadpeople = e-q;
            return deadpeople;
        }
        return 0;
    }

}

package eco;

public class Farmer {

    public static int fPop = 5;
    public static int fHunger;

    public static int fHunger(int popGroupNumber){
        
        int fHunger = 0;
        fHunger = popGroupNumber*(Util.randInt(9, 10));
        return fHunger;
    }

    public static int fPop(float fPopulation) {
        
        float rate = (1 + Main.fBirthRate - Main.fDeathRate);
        fPopulation = (fPopulation * rate);
        int k = (int)(fPopulation);
        System.out.println(k);
        return k;

    }
    
    public static int checkStarvation(int hungriness, int wheat ){
        int deadpeople;
        int q;
        int e;
        double k;
        double o;
        if(hungriness > wheat){
            o = wheat/11;
            k = hungriness/11;
            e = (int) Math.floor(k);// floors hungirness
            q = (int) Math.floor(o);// floors total wheat
            deadpeople = e-q;
            return deadpeople;
        }
        return 0;
    }

}

Update Farmer.java