Update scanner.java

type fixer