文字列の最初の文字を小文字に変換する方法を探しています。私が使用しているコードは、配列からランダムな文字列を取得し、文字列をテキスト ビューに表示してから、それを使用して画像を表示します。配列内のすべての文字列は最初の文字が大文字になっていますが、アプリに保存されている画像ファイルはもちろん大文字にすることはできません。
String source = "drawable/"
//monb is randomly selected from an array, not hardcoded as it is here
String monb = "Picture";
//I need code here that will take monb and convert it from "Picture" to "picture"
String uri = source + monb;
int imageResource = getResources().getIdentifier(uri, null, getPackageName());
ImageView imageView = (ImageView) findViewById(R.id.monpic);
Drawable image = getResources().getDrawable(imageResource);
imageView.setImageDrawable(image);
ありがとう!