1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

[typical]toPrefix method

Discussion in 'Java' started by louismkk_0312, May 4, 2010.

  1. louismkk_0312

    louismkk_0312 New Member

    Joined:
    May 4, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    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..
     

Share This Page