public class Main { public static void main(String[] args) throws Exception { Double d = Double.valueOf("0.9D").doubleValue(); } }