Create rating.java

rating java file