Here you can find the source of menu()
public static int menu()
//package com.java2s; //License from project: Apache License import java.util.Scanner; public class Main { public static int menu() { int selection; Scanner input = new Scanner(System.in); System.out.println("Please enter a number to perfom the desired operation"); System.out.println("-------------------------\n"); System.out.println("1 - Call the international geocoding API provided by PostCodeAnywhere (SOAP)"); System.out.println("2 - Call the global weather API provided by WorldWeatherOnline (REST)"); System.out.println("3 - Quit"); selection = input.nextInt();// ww w .ja v a 2 s . c o m return selection; } }