branch | v_0 |
changeset 38 | ff5bbc06ed29 |
parent 34 | 9335cf31c0f2 |
child 40 | a9db7fb3ce65 |
37:9e6f8e5d5f98 | 38:ff5bbc06ed29 |
---|---|
116 } |
116 } |
117 } |
117 } |
118 } |
118 } |
119 } |
119 } |
120 } |
120 } |
121 |
|
122 public static String rpad(String s, int n) { |
|
123 return String.format("%1$-" + n + "s", s); |
|
124 } |
|
125 |
|
126 public static String lpad(String s, int n) { |
|
127 return String.format("%1$" + n + "s", s); |
|
128 } |
|
121 } |
129 } |