package com.accenture.multibank.generator;

/**
 * @author manuel
 * @version 11/23/16
 */
public class SimpleAccountNumberGenerator implements AccountNumberGenerator {
    private int accountNumber;

    public SimpleAccountNumberGenerator(int start) {
        this.accountNumber = start;
    }

    /**
     * Increases the accountNumber by 1 and returns it
     * @return accountNumber increased by 1
     */
    public int generateAccountNumber() {
        return ++accountNumber;
    }
}

@@ -162,20 +162,17 @@
 rator %7B%0A
-    
+%09
 private 
@@ -188,16 +188,20 @@
 ntNumber
+ = 0
 ;%0A%0A    p

set default value