Code:
public class Average {
public static void main(String[] args) {
int first = 5;
int second = 7;
int third = 3;
double avg = (first + second + third)/3;
System.out.print(avg);
}
}
The first 3 lines of code for main are declaring 3 integers, which equal different numbers. These will be the 3 numbers used in the average calculation. Then, the 4th line is the double (decimal number) that the average will be, so in this case it's all the integers (ints) added together and divided by 3 (the number of ints). Then, they are printed out.

