import java.util.*;


public class Calculator {

	public static void main (String[]args){
		
		Scanner input = new Scanner(System.in);
		
		System.out.println("Enter the first number: ");
		int n1 = input.nextInt();
		
		System.out.println("Enter the second number: ");
		int n2 = input.nextInt();
		
		System.out.println("Enter the action: ");
		String act = input.next();
		
		input.close();
		
		System.out.println("The result is: " +Functional.calcAct(n1, n2, act));
		
	}
	
}

@@ -93,16 +93,59 @@
 )%7B%0D%0A%09%09%0D%0A
+%09%09Functional func = new Functional();%0D%0A%09%09%0D%0A
 %09%09Scanne
@@ -493,26 +493,20 @@
  is: %22 +
-F
+f
 unc
-tional
 .calcAct

Update Calculator.java