Write a complete program in Java based on the following statement:
In the College of Computer Science and Information System, forty students were asked to rate the quality of teaching of his Course Instructor in the class room environment on a scale of 1 to 10 (1 means minimum standard of teaching and 10 means excellent standard of teaching). Summarize the number of response of each type (i.e., 1 to 10). Count the number of occurrence of each response. Your program should make rating on the frequency of response.