Package edu

Examples of edu.Esel


    public void tearDown() {
    }

    @Test
    public void test1() {
        Esel heinz = new Esel(35, "Heinz");
        Esel liesel = new Esel(20, "Liesel");
        Esel speedy = new Esel(40, "Speedy");

        Treck nordSued = new Treck("Hamburg", "Munchen");

        nordSued.addEsel(heinz);
        nordSued.addEsel(liesel);
View Full Code Here


        System.out.print("Done!\n");
    }

    @Test
    public void test2() {
        Esel heinz = new Esel(35, "Heinz");
        Esel liesel = new Esel(20, "Liesel");
        Esel speedy = new Esel(40, "Speedy");

        Treck nordSued = new Treck("Hamburg", "Munchen");

        nordSued.addEsel(heinz);
        nordSued.addEsel(liesel);
View Full Code Here

        System.out.print("Done!\n");
    }

    @Test
    public void test3() {
        Esel heinz = new Esel(35, "Heinz");
        Esel liesel = new Esel(20, "Liesel");
        Esel speedy = new Esel(40, "Speedy");

        Treck nordSued = new Treck("Hamburg", "Munchen");

        nordSued.addEsel(heinz);
        nordSued.addEsel(liesel);
View Full Code Here

*/
public class TreckGUI extends javax.swing.JFrame {

    /** Creates new form TreckGUI */
    public TreckGUI() {
        _EselWelt.add(new Esel(50, "Heinz", "Hamburg"));
        _EselWelt.add(new Esel(35, "Liesel", "Berlin"));
        _EselWelt.add(new Esel(40, "Speedy", "Meinz"));
        _EselWelt.add(new Esel(50, "Speedy", "Kiel"));
       
        initComponents();
    }
View Full Code Here

        try {
            String eselName = jTextField2.getText();
            int eselVelocity = (Integer) jSpinner1.getValue();
            String eselStandort = (String) jList2.getSelectedValue();
           
            Esel neuerEsel = new Esel(eselVelocity, eselName, eselStandort);
            _EselWelt.add(neuerEsel);
           
            EV.clear();
            for (int i = 0; i < _EselWelt.size(); i++) {
                EV.add(_EselWelt.get(i).getName() + " [" + _EselWelt.get(i).getPace() + "] [" + _EselWelt.get(i).getStandort() + "]");
View Full Code Here

TOP

Related Classes of edu.Esel

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.