Easy Java 1 line code for each
```\nclass FrontMiddleBackQueue {\n    LinkedList list;\n    \n    public FrontMiddleBackQueue() {\n        list = new LinkedList();\n    }\n    \n    public vo
```\nclass FrontMiddleBackQueue {\n    LinkedList<Integer> list;\n    \n    public FrontMiddleBackQueue() {\n        list = new LinkedList();\n    }\n    \n    public void pushFront(int val) {\n        list.addFirst(val);\n    }\n    \n    public void pushMiddle(int val) {\n        list.add(list.size()/2, val);\n    }\n    \n    public void pushBack(int val) {\n        list.addLast(val);\n    }\n    \n    public int popFront() {\n        return list.isEmpty()? -1 : list.removeFirst();\n    }\n    \n    public int popMiddle() {\n        return list.isEmpty()? -1 : list.remove((list.size()-1)/2);\n    }\n    \n    public int popBack() {\n        return list.isEmpty()? -1 : list.removeLast();\n    }\n}\n
[]