That code doesn't compile at all.
You wrote "Interface" and "Class" with capital letters in lines 1, 6 and 10, and you can't put a
System.out.println(...); statement at class level, as you are doing in line 11.
Please
PostRealCode, not pseudo-code that doesn't really work, because that will confuse the question. It's important to be precise.