[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

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice