import java.util.*; class Infix{ static int pred(char ch){ switch(ch){ case '+': case '-': return 1; case '*': case '/': return 2; case '^': return 3; } return -1; } static String infx(String str){ String result = ""; Stack st = new Stack<>(); for(int i=0;i