Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Java (http://www.go4expert.com/forums/java/)
-   -   [typical]toPrefix method (http://www.go4expert.com/forums/typicaltoprefix-method-t21994/)

louismkk_0312 4May2010 19:30

[typical]toPrefix method
 
Dear all
I am new register member

As I am writting a program which need to convert an expression from infix/postfix to prefix

This case with some condition where it can specific '(' and ')' operator and two digits value.

I prefer the method will be like this

Code:

public static String toPrefix(String inputfix) // which inputfix can be infix or postfix{

...
return prefix;
}

Could it be using Stack?

I am green
Thx a lot..hope for reply..


All times are GMT +5.5. The time now is 18:36.