public static double readDouble(){
  return scanner.nextDouble();
}

public static double readDouble ( ) { return scanner . nextDouble ( ) ; }
reads the next token from standard input , parses it as a double , and returns the double .
