Trail in Java class