Os copio el código:
Código
El error lo da en la línea 28: "Syntax error on token(s), misplaced construct(s)"
package es.javazek.buscaminas; import java.util.Queue; import android.view.*; import android.view.View.*; public class InputHandler implements OnTouchListener, OnClickListener, OnKeyListener{ //Class Pair public class Pair<A, B>{ A first; B second; public Pair(A first, B second){ this.first = first; this.second = second; } } //Class Trio public class Trio<A, B, C> extends InputHandler.Pair<A, B>{ C third; public Trio(A first, B second, C third){super(first, second); this.third = third; } } Queue<Pair<View, MotionEvent> > qOnTouch; Queue<View> qOnClick; public InputHandler(Queue<View> qOnClick, Queue<Pair<View, MotionEvent> > qOnTouch, Queue<Trio<View, Integer, KeyEvent> > qOnKey){ this.qOnClick = qOnClick; this.qOnKey = qOnKey; this.qOnTouch = qOnTouch; }///////////////////// ERROR @Override qOnClick.add(v); } @Override qOnTouch.add(new Pair<View, MotionEvent>(v, event)); return true; } @Override return false; } }
Espero que me podais ayudar