Java Scanner Read readWholeString(Scanner s)

Here you can find the source of readWholeString(Scanner s)

Description

read Whole String

License

Open Source License

Declaration

private static String readWholeString(Scanner s) 

Method Source Code

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

import java.util.Scanner;

public class Main {
    private static String readWholeString(Scanner s) {
        return s.useDelimiter("\\A").hasNext() ? s.next() : "";
    }//from www  .  j  a va  2s  .  c o m
}

Related

  1. readLine(String format, Object... args)
  2. readMatrix(Scanner in, int n)
  3. readPassword(String format, Object... args)
  4. readPositiveInt(String message, Scanner input)
  5. readSystemInToIntArrayList()