My output is:
*** Barbossa *** says ruff! Tue, 30-Nov-2021
*** Puppy *** says ruuuuff! Tue, 30-Nov-2021
*** Rover *** says ruff! Tue, 30-Nov-2021
The mouse squeaks.
*** Spot *** is sleeping.
I added also parameter ,,Locale.ENGLISH" in class SuperDog for variable ,,formatter'' because it showed me day of the week in my language.
Can anybody have similar problem?
package com.codegym.task.task24.task2408;
import java.util.List;
/*
How to avoid Copy+Paste
*/
public class Solution {
public static void main(String[] args) {
List<Pet> pet = Util.getPets();
List<CanSpeak> pets = Util.convertPetToCanSpeak(pet);
Util.printDialog(pets);
}
}