Write a program that displays a square of characters whose side is specified by the number entered by the user and the character used to fill the square is also entered by the user. For example, if side is 5 and fill character is #, then program should print the following: For example, if side is 3 and fill character is @, then this program should print the following: @@@ @@@ @@@ You can write this program using nested loops Solution Example.java import java.util.Scanner;//scanner package for keyboard inputting public class Example { public static void main(String args[]) {//main method Scanner sc = new Scanner(System.in); System.out.println(\"enter the number\"); int num = sc.nextInt(); if (num == 5) {//loops for square characters for (int i = 0; i < 5; i++) { for (int j = 0; j < 5; j++) { System.out.print(\"#\"); } System.out.println(\"\"); } } else if(num == 3) { for (int i = 0; i < 3; i++) { for (int j = 0; j < 3; j++) { System.out.print(\"@\"); } System.out.println(\"\"); } } else System.out.println(\"enter valid choice\"); } } output enter the number 5 ##### ##### ##### ##### ##### BUILD SUCCESSFUL (total time: 2 seconds) .