Convertir la corde en java flottante

String yourString = "23.7";
float yourFloat = Float.parseFloat(yourString);
Lazy Lemur