Android Open Source - Sertimus Strings

From Project

Back to project page Sertimus.


The source code is released under:

GNU General Public License

If you think the Android project Sertimus listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package gameaddict30.wallpaper.sertimus.utilities;
// w  ww.  j ava 2  s  .c  o m
public class Strings {
  public static String implode(String[] a, char delim) {
    String completeString = "";
    completeString += a[0];
    if (a.length > 1)
      for (int x=1; x < a.length; x++)
        completeString += delim + a[x];
    return completeString;
  public static int countOccurrenceOf(String s, char a) {
    int count=0;
    for (int x=0; x < s.length(); x++)
      if (s.charAt(x) == a)
    return count;

Java Source Code List