Changing API

Let us extend the API with more functionality: we want to let clients specify a list of lines for the birthday card:

  1. package com.example.birthdayservice;
  2. /** Birthday service interface. */
  3. interface IBirthdayService {
  4. /** Generate a Happy Birthday message. */
  5. String wishHappyBirthday(String name, int years, in String[] text);
  6. }