This works for me. When I put it in Wiley plus it says the following:
Compiling 1 source file to /var/folders/v7/959xv8710n98qn1vwg1jhnxr0000gn/T/asnmt1053218usr3628611-submit-1365039510034
/var/folders/v7/959xv8710n98qn1vwg1jhnxr0000gn/T/asnmt1053218usr3628611-submit-1365039510034/MiddleTest.java:3: error: class getMiddle is public, should be declared in a file named getMiddle.java
public class getMiddle
/var/folders/v7/959xv8710n98qn1vwg1jhnxr0000gn/T/codecomp9144166310241157728.xml:152: Compile failed; see the compiler error output for details.