In Java Programming, There is no method in the Queue interface which is equivalent to the peek() method in the Stack interface. Devise one and add it to the Queue interface. Be sure to specify whether it returns the front or the back element of the Queue.