Last active
December 20, 2018 01:54
-
-
Save testica/5839735a13edfc3f0433fd1782c95b97 to your computer and use it in GitHub Desktop.
D function of Shop class
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private String d() { | |
try { | |
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("ddMM", Locale.getDefault()); | |
StringBuilder stringBuilder = new StringBuilder(); | |
stringBuilder.append(this.b.k()); | |
stringBuilder.append(simpleDateFormat.format(Long.valueOf(System.currentTimeMillis()))); | |
String stringBuilder2 = stringBuilder.toString(); | |
int i = 0; | |
int parseInt = Integer.parseInt(this.b.k().substring(0, 2)); | |
int parseInt2 = Integer.parseInt(this.b.k().substring(2, 4)); | |
int parseInt3 = Integer.parseInt(this.b.k().substring(4, 6)); | |
StringBuilder stringBuilder3 = new StringBuilder(); | |
byte[] bytes = stringBuilder2.getBytes(); | |
int length = bytes.length; | |
while (i < length) { | |
stringBuilder3.append(String.valueOf((bytes[i] + parseInt2) * parseInt)); | |
i++; | |
} | |
stringBuilder2 = stringBuilder3.toString(); | |
stringBuilder = new StringBuilder(); | |
stringBuilder.append(stringBuilder2); | |
stringBuilder.append(parseInt3 * stringBuilder3.length()); | |
return stringBuilder.toString(); | |
} catch (Exception e) { | |
e.printStackTrace(); | |
return "com.burockgames.no_thing"; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment