Resource leak: 'scanner' is never closed code example Example: Resource leak: 'scanner' is never closed Resource leak in java.util.Scanner