Rewrite the line of code that begins “Key key = new Key” as two, separate lines of code that each contain a statement—an initialization statement and an assignment statement.
First, make it a complete statement. Then, write the assignment part of it as your second line and determine from that what the initialization (or declaration) part of it should be for the first line.