Skip to content

Instantly share code, notes, and snippets.

@shahrilnet
shahrilnet / postfix.java
Created February 19, 2016 06:32
Infix to Postfix - Java Converter (no invalid expressions checking)
import java.util.*;
public class postfix {
public static void main(String args[]) {
String infix = "x-(y*a/b-(z+d*e)+c)/f";
System.out.println("Infix : " + infix);
System.out.println("Postfix : " + inf2postf(infix));