Fix improper UID String and getUID()
generateUID() used to produce spaces rather then leading zeros. Before ( 1) After (0001) Also add getUID method
This commit is contained in:
parent
1372282168
commit
eabe86923d
@ -88,6 +88,10 @@ public class Campaign {
|
||||
|
||||
private void generateUID() {
|
||||
numeberOfCampains++;
|
||||
this.UID = String.format("%4d", numeberOfCampains);
|
||||
this.UID = String.format("%04d", numeberOfCampains);
|
||||
}
|
||||
|
||||
public String getUID(){
|
||||
return this.UID;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user