Java tutorial
//package com.java2s; public class Main { public static boolean isFaceRate(String string) { try { float val = Float.parseFloat(string); if (val >= 0.1 && val <= 0.9) { return true; } } catch (Exception e) { } return false; } }