The line:
Criminal criminal = new Criminal(leftInput.name());
is trying to access the private variable leftInput which doesn't belong to your class. You only have access to the parameter e in this method.
Reputation Points: 395
Solved Threads: 192
Veteran Poster
Offline 1,136 posts
since Aug 2007