<prompt> Andika upya programu hii katika Java. Ni programu ambayo pato Pascal ya Triangle na inachukua urefu kama input.include using namespace std;int main int n; cout Enter the number of rows: ; cin n; int arrnn; initialize first two rows arr00 1; arr10 1; arr11 1; forint i2; i  <response>: Heres the Java version of the program:import java.util.Scanner;public class PascalTriangle public static void mainString args Scanner sc new ScannerSystem.in; System.out.printEnter the number of rows: ; int n sc.nextInt; int arr new intnn; initialize first two rows arr00 1; arr10 1; arr11 1; forint i2; i 