Java Scanner Read read()

Here you can find the source of read()

Description

read

License

Open Source License

Declaration

public static Double read() 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.util.Scanner;

public class Main {
    public static Double read() {
        try {//from w ww. j  a  v a2s  . c  o m
            return Double.parseDouble(new Scanner(System.in).nextLine());
        } catch (NumberFormatException e) {
            return null;
        }
    }
}

Related

  1. loadNDimDoubleMatrixRec(Scanner reader, int[] dim, Object nmatrix)
  2. loadSentencesMap(String path)
  3. loadSolution(File file)
  4. loadTestProgram(final Class resourceClass, final String fileName)
  5. loadTimeseries(File file, String delimeter, int _amountOfLines)
  6. read(Class clazz, String f)
  7. readArr(Scanner in, int n)
  8. readCQLFile(String cqlFileName)
  9. readFile(Class ownerClass, String fileName)