import java.util.Scanner; public class AdderCheck { //do this so the scanner is visible in all methods. private static final Scanner scammer; static { scammer = new Scanner(System.in); } private static String getIntegerString() { //get a string from the user //do the nagging here. //NB: get rid of whitespace on either side. } private static boolean isValidIntegerString(String n) { //check if it's a valid integer string (optional //+ or - followed by numbers } public static void main(String[] args) { //run the loop that gets all of the valid numbers //adds them, and does the output routine at the end. } }