So guys this is my code. the code runs fine but I don't get the proper average. Could someone please fix it.
import java.util.Scanner;
public class test {
    public static double Avg(int amt, int num) {
     int tot = 0;
     tot = tot + num;
     int average = tot/amt;
     return average;
public static void main(String[] args) {
    double average_ICT_01 = 0;
    Scanner sc = new Scanner(System.in);
    ArrayList<Integer> ICT_01 = new ArrayList<Integer>();
    for (int i=0; i<3; i++) {
        int num = sc.nextInt();
        ICT_01.add(num);
    }
     int length01 = ICT_01.size();
    for (int c=0; c<3; c++) {
        int num1 = ICT_01.get(c);
        average_ICT_01 = Avg(length01,num1);
    }
    System.out.println(average_ICT_01);
}      
}
 
     
    