Here you can find the source of prompt(String output)
private static String prompt(String output)
//package com.java2s; //License from project: LGPL import java.util.Scanner; public class Main { private static String prompt(String output) { System.out.print(output); Scanner input = new Scanner(System.in, "utf-8"); String line = input.nextLine(); input.close();/*from w ww .ja va2 s . c o m*/ return line; } }