タイトル: 先頭と末端の文字の削除
SEOタイトル: 【Java】先頭と末端の文字の削除
先頭の文字の削除
|
str.substring(1, str.length()); |
末端の文字の削除
|
str.substring(0, str.length()-1); |