This was the proposed output:
************ ************ ************ ************ ************ ************ ************ ************
i cant do it purely with for loop i dont know if im missing something
public class Loop { public static void main(String[] args) { for (int i = 1; i <= 8; i++) { switch(i){ case 2: System.out.print(" "); break; case 4: System.out.print(" "); break; case 6: System.out.print(" "); break; case 8: System.out.print(" "); break; } for (int j = 0; j < 12; j++) { System.out.print("*"); } System.out.println(); } } }
Anyone else have other methods just only using forloop? please be humble with me its my first time asking a community im nervous.