public final class StringUtils extends Object
Modifier and Type | Method and Description |
---|---|
static String |
lpad(String input,
char padding,
int length)
Padds the string to the left with the given character for
the specified length.
|
static String |
rpad(String input,
char padding,
int length)
Padds the string to the right with the given character for
the specified length.
|
public static String lpad(String input, char padding, int length)
input
- The input string.padding
- The char used for padding.length
- The length of the new string.Copyright © 2025 Apache Software Foundation. All rights reserved.