public class SubstringUtil extends Object
| Constructor and Description |
|---|
SubstringUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String |
substring(String s,
int start,
int end,
String fillString,
boolean autoFill)
STRING := "0123456789" | substring(s, 1, null/0) => 123456789 |
substring(s, 2, ") => 2345 | substring(s, null/0, 3) => 012 | substring(s,
-2, null) => 89 | substring(s, -3, -2) => 7 | substring(s, -2,2) => 0189 |
substring(s, 2, -4) => 2345 | substring(s, null, -5) => 01234 |
substring(s, 6,2) => | substring(s, -3, -4) => | substring(s, null, null)
=> |
|
public static String substring(String s, int start, int end, String fillString, boolean autoFill)
s - start - end - Copyright © 2018. All rights reserved.