This commit is contained in:
parent
77f96fafa6
commit
ca2b85ef9e
|
@ -4,17 +4,6 @@ public class lab_3 {
|
||||||
static int maxStrLength;
|
static int maxStrLength;
|
||||||
static String result;
|
static String result;
|
||||||
|
|
||||||
/* public static StringBuilder StringBuilderLowerCase(StringBuilder pText) {
|
|
||||||
StringBuilder pTextLower = new StringBuilder(pText);
|
|
||||||
for (int idx = 0; idx < pText.length(); idx++) {
|
|
||||||
char c = pText.charAt(idx);
|
|
||||||
if (c >= 65 && c <= 65 + 27) {
|
|
||||||
pTextLower.setCharAt(idx, (char) ((int) (pText.charAt(idx)) | 32));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return pTextLower;
|
|
||||||
} */
|
|
||||||
|
|
||||||
public static void cSubUtil(StringBuilder stringbuilder, int leftBoundary, int rightBoundary) {
|
public static void cSubUtil(StringBuilder stringbuilder, int leftBoundary, int rightBoundary) {
|
||||||
String string = stringbuilder.toString().toLowerCase().replaceAll("[^a-z]","");
|
String string = stringbuilder.toString().toLowerCase().replaceAll("[^a-z]","");
|
||||||
// check if the indices lie in the range of string
|
// check if the indices lie in the range of string
|
||||||
|
|
Loading…
Reference in New Issue