CGI Interview Question

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