CGI interview question

write a program to find mean of two number using java.