Skip to main content
1 de 2
durtto
  • 3,2mil
  • 7
  • 26
  • 58
String comEspaco = "8 hrs 2 mins";
if (comEspaco.constains("hrs"))
{
  String  semEspaco = comEspaco.replace(" hrs", "hrs").replace(" mins", "mins")
}
else
{
  String  semEspaco = comEspaco.replace(" dia", "dia").replace(" hrs", "hrs")
}
durtto
  • 3,2mil
  • 7
  • 26
  • 58