Best Patterns in the Java Program 2024

Best Patterns in Java Program 2024″ suggests a tutorial or resource showcasing some of the most effective and visually appealing patterns achievable through Java programming in the year 2024. Here’s a description of what such a resource might include.

***************
 *************
  ***********
   *********
    *******
     *****
      ***
       *
class McqsListHolo03 {
   public static void main(String args[]){
       int row,col,defVar=15;
        for( row =1;row<=8;row++){
            for(col=1;col<row;col++){
                System.out.print(" ");
            }
            for(col=1;col<=defVar;col++){
                System.out.print("*");
            }
            defVar = defVar -2;
            System.out.println();
        }
    }
}

Leave a Comment