Java tutorial
//package com.java2s; public class Main { public static float str2float(String str) { return Float.parseFloat(str.trim()); } }