public class Rennschnecke { private String name; private String rasse; private double max; private double weg; public void krieche(double time){ this.weg += this.max * Math.random(); } public Rennschnecke(String name, String rasse){ this.name = name; this.rasse = rasse; this.max = max; this.weg = weg; } public double getStrecke() { return weg; } }