![]() |
![]() |
![]() |
![]() |
![]() |
|
With the Movie class and movieRating method defined as in
Segment 151, you produce the following result with the
Demonstrate program:
public class Demonstrate {
public static void main (String argv[]) {
int script = 6, acting = 9, direction = 8;
System.out.print("The rating of the movie is ");
System.out.println(Movie.movieRating(script, acting, direction));
}
}
--- Result ---
The rating of the movie is 241