public class TriangleUtilities { public static String getRow(int numberOfStars) { StringBuilder stringStars = new StringBuilder(); for (int i = 0; i < numberOfStars; i++) { stringStars.append("*"); } return stringStars.toString(); } public static String getTriangle(int numberOfRows) { StringBuilder strStars = new StringBuilder(); for (int i = 0; i