Jesus is not opposed to public prayer at all. What Jesus is opposed to is praying to be seen or heard by men.