Write a Java program to draw a pattern like mentioned below:
public class DrawPattern1 { public static void main(String[] args) { String s = "ABC"; for (int row = 1; row <= 6; row++) { for (int col = 1; col <= 6; col++) { if(col <= row){ System.out.print(col); } else { System.out.print("*"); } } System.out.println(); } } }