Created
November 29, 2019 23:34
-
-
Save itsbriany/2e979ac6aae70bfb0dcb3562c2d93d67 to your computer and use it in GitHub Desktop.
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
public final int getStat(final char c) { | |
final String string = PreferenceManager.getDefaultSharedPreferences((Context)this).getString("activity", ""); | |
Intrinsics.checkExpressionValueIsNotNull(string, "act"); | |
final String s = string; | |
int n; | |
int n2; | |
for (int i = n = 0; i < s.length(); ++i, n = n2) { | |
final boolean b = s.charAt(i) == c; | |
n2 = n; | |
if (b) { | |
n2 = n + 1; | |
} | |
} | |
return n; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment