In your code, replace Number1.length with Number.length() in the for loop. Then it works.