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:
HeshamTB 2020-11-06 23:28:58 +03:00
parent 1372282168
commit eabe86923d
Signed by: Hesham
GPG Key ID: 74876157D199B09E

View File

@ -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;
}
}