simple asterisk pattern September 19, 2023 public class SimpleAsterisk { public static void main(String[] args) { for (int i = 0; i <…