public class Mouvement { public static final int AVANT = 1; private int direction; public Mouvement() { direction = AVANT; } public void inverse() { direction = -direction; } public int direction() { return direction; } }