From: Roland Haeder Date: Wed, 13 Apr 2016 21:00:35 +0000 (+0200) Subject: concat() was not working? X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b883c1001044f02d0c958f63112866b5a5c7adcf;p=juser-core.git concat() was not working? --- diff --git a/src/org/mxchange/jusercore/model/user/UserUtils.java b/src/org/mxchange/jusercore/model/user/UserUtils.java index b21a217..486e20f 100644 --- a/src/org/mxchange/jusercore/model/user/UserUtils.java +++ b/src/org/mxchange/jusercore/model/user/UserUtils.java @@ -79,7 +79,7 @@ public class UserUtils extends BaseFrameworkSystem { int pos = RANDOM_NUMBER_GENERATOR.nextInt(PASSWORD_ALPHABET.length()); // Get char at this position and add it to the final password - String dummy = password.concat(String.valueOf(PASSWORD_ALPHABET.charAt(pos))); + password += String.valueOf(PASSWORD_ALPHABET.charAt(pos)); } // Should have the wanted length