- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
20 lines
661 B
Java
20 lines
661 B
Java
package com.google.android.datatransport.cct;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public abstract class StringMerger {
|
|
public static String mergeStrings(String str, String str2) {
|
|
int length = str.length() - str2.length();
|
|
if (length < 0 || length > 1) {
|
|
throw new IllegalArgumentException("Invalid input received");
|
|
}
|
|
StringBuilder sb = new StringBuilder(str.length() + str2.length());
|
|
for (int i = 0; i < str.length(); i++) {
|
|
sb.append(str.charAt(i));
|
|
if (str2.length() > i) {
|
|
sb.append(str2.charAt(i));
|
|
}
|
|
}
|
|
return sb.toString();
|
|
}
|
|
}
|