Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class AEMain {
- public static void main(String args[]){
- Scanner sc = new Scanner(System.in);
- System.out.println("Type arithmetic expression: ");
- String expression = sc.nextLine();
- AESupport exp = new AESupport();
- Double answer = exp.publicCalculation(expression);
- System.out.println("Answer is " + answer);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment