package eco; 

public class Tax {
	public static int taxRevenue;
	
    public static int taxRevenue(int countrycode){
         for(int i=0; i < Main.popArray[countrycode].length; i++){
         	taxRevenue = taxRevenue + Main.popArray[countrycode][i].groupmoney;
         	//System.out.println("Tax: " + taxRevenue);
        }
        return taxRevenue;
	}
    

}

@@ -58,16 +58,89 @@
 evenue;%0A
+%09public static int%5B%5D tax = new int%5B75%5D;%0A%09public static int taxRate = 20;%0A
 %09%0A    pu
@@ -184,17 +184,16 @@
 ycode)%7B%0A
- 
         
@@ -326,16 +326,26 @@
 oupmoney
+ * taxRate
 ;%0A      
@@ -352,10 +352,245 @@
    %09
-//
+int x = Main.popArray%5Bcountrycode%5D%5Bi%5D.groupmoney;%0A         %09Main.popArray%5Bcountrycode%5D%5Bi%5D.groupmoney = (x - (x * taxRate));%0A        %7D%0A        int y = 620;%0A        int x = 854;%0A        int shift = 100;%0A        %0A    %09if(Main.debug)%7B%0A    %09%09
 Syst
@@ -631,30 +631,380 @@
 e);%0A    
+%09%7D%0A
     
-%7D%0A        
+    tax%5B74%5D = taxRevenue;%0A        %0A        %0A    %09for(int i=0; i%3Ctax.length; i++)%7B%0A    %09%09World.messages.add(new Message(%22%5Cu25A0 .%22, (x - 160 - shift) + i, (y - shift) - (tax%5Bi%5D), 1));%0A    %09%7D%0A%0A%0A    %09for(int i=0; i%3Ctax.length - 1; i++)%7B%0A        %09tax%5Bi%5D = tax%5Bi + 1%5D;%0A    %09%7D%0A    %09%0A    %09World.messages.add(new Message(%22Tax%22, (x - 160 - shift), y - 60, 1));%0A    %09
 return t
@@ -1020,13 +1020,14 @@
 ;%0A%09%7D
+%09
 %0A    %0A
-%0A
 %7D%0A
+%0A

Update Tax.java