Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package pets;
- public class FishMaster {
- public static void main(String[] args) {
- Fish myFish = new Fish();
- myFish.dive(2);
- myFish.dive(3);
- myFish.dive(2, 7);
- myFish.sleep();
- myFish.say("Привет");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement