さて、私がやろうとしているのは、Minecraft というこのゲームで、15h と入力すると、15 時間または 20 分 20 分を意味するということです。だからここに私が思いついたものがあります。
String time = args[3];//args[3] is the text they write (15m, 1d, 20h)
time = time.replace("m", " minutes.");
time = time.replace("h", " hours.");
time = time.replace("d", " days.");
if(time.contains("m"))
{
//Convert the minutes into seconds
//In order to do that I have to pull out the number from "15m", so I would have to pull out 15, how would I do that?
}