Question :
Write a program to print given pattern !

Solution :
Here Is the Java code to print the given pattern.
public class pattern {
public static void main(String[] args) {
for (int i = 0; i <5; i++) {
for (int j = 0; j < 5; j++) {
System.out.print("*");
}
System.out.println();
}
}
}