Question: 1. Write a code fragment that prints every other character in a String object called word starting with the first character.
2. Write a method called multiplesOfFive that prints the first 5 multiples of 5 (starting with 5). The method takes no parameters and doesn't return anything.
3. Write a method called alarm that prints the string "Alarm!" multiple times on separate lines. The method should accept an integer parameter that specifies how many times the string is printed. Print an error message if the parameter is less than 1.