import java.util.Scanner; public class Methods2 { static Scanner keyboard = new Scanner(System.in); public static void main(String [] args) { addTwoNumbers(); addTwoNumbers(); } public static void addTwoNumbers() { System.out.println("Enter the first number: "); double a = keyboard.nextDouble(); System.out.println("Enter the second number: "); double b = keyboard.nextDouble(); System.out.println("The sum is: " + (a + b)); } }