Demo entry 6351500

dd

   

Submitted by dd on Mar 20, 2017 at 16:23
Language: Java. Code size: 374 Bytes.

/**
 * Created by LiuQixuan on 2017/3/20.
 */

class Animal {
    public void breathe(String animal) {
        System.out.println(animal + "呼吸空气");
    }
}

public class Client {
    public static void main(String[] args) {
        Animal animal = new Animal();
        animal.breathe("牛");
        animal.breathe("羊");
        animal.breathe("猪");
    }
} 

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).