Write a method called getCallableInteger
that reads an integer from the
standard input and returns a Callable<Integer>
.
import java.util.Scanner;
import java.util.concurrent.Callable;
public class Main {
public static Callable<Integer> getCallableInteger() {
// your code here
}
}