Here you can find the source of readFromReader(Scanner scanner)
Parameter | Description |
---|---|
reader | a parameter |
private static String readFromReader(Scanner scanner)
//package com.java2s; //License from project: LGPL import java.util.Scanner; public class Main { /**/*from www .j a va 2 s . c o m*/ * This method is used to read input from buffered reader. * * @param reader * @return String */ private static String readFromReader(Scanner scanner) { String input; input = scanner.nextLine().trim(); return input; } }