EECS2030 C & E Test 1A Solution

  1. PIN_solution1.java
  1. PIN_solution2.java

PIN.java Solution 1

This solution uses a single String field to represent the PIN.

PIN.java Solution 2

This solution uses two fields: an int for the number of leading zeros, and an int for the remaining digits.