集册 Java实例教程 从控制台读取双精度

从控制台读取双精度

欢马劈雪     最近更新时间:2020-01-02 10:19:05

536
从控制台读取双精度

/**
N o w J a v a . c o m - 时代Java
**/

//package com.nowjava;

import java.io.BufferedReader;

import java.io.IOException;

import java.io.InputStreamReader;


public class Main {

    private static BufferedReader buffer = new BufferedReader(

            new InputStreamReader(System.in));


    /**

     * Reads a double from console

     * 

     * @return the read double

     * @throws IOException

     *             If an IO error occurs

     */

    public static double readDouble() 
展开阅读全文