Question: Please help with this as i do not understand how to accomplish the code in java i have to write an algorithm that gets an

Please help with this as i do not understand how to accomplish the code in java

i have to write an algorithm that gets an expression as a String in prefix notation and returns a String with the expression in postfix notation. For example, on input / * 2 + 3 4 - 18 16 the method returns 2 3 4 + * 18 16 - /. we can assume input is always valid

so can someone implement this function for the question

public string prefix2post(string prefix){

}

help would be appreciated pls

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!