Java Scanner Usage enterToContinue()

Here you can find the source of enterToContinue()

Description

enter To Continue

License

Open Source License

Declaration

public static void enterToContinue() 

Method Source Code

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

import java.util.Scanner;

public class Main {
    public static void enterToContinue() {
        Scanner scanner = new Scanner(System.in);
        System.out.println("Press enter to continue.");
        scanner.nextLine();/*  w w  w  .ja  va 2 s.c  o m*/
    }

    public static void enterToContinue(String customString) {
        Scanner scanner = new Scanner(System.in);
        System.out.println(customString);
        scanner.nextLine();
    }
}

Related

  1. confirm(String message)
  2. confirmAction(String warning)
  3. countFileLines(Scanner fin)
  4. createKeyboardScanner()
  5. createScannerForString(String s)
  6. equalsToIgnoreEndline(String expected, String actual)
  7. fromStringToQuery(String value)
  8. getBoolean()
  9. getChar()