I must define a Translator class that contains a capitalize method. The method will receive a StringBuffer, which contains only letters of the English alphabet and spaces, and will change it so that each of the words starts with a capital letter.
// my class I need to define
public class Main {
  public static void main(String[] args) {
    StringBuffer titlu = new StringBuffer("Why it is good to participate in competitions");
    Translator.transformaCuMajuscule(titlu);
    System.out.println(titlu); // Why It Is Good To Participate In Competitions
  }
}
 
    