<prompt> Kujenga programu Java kwamba simulated roll dice.  <response>: Sure, here is a Java program that simulates rolling a dice: Javaimport java.util.Random;public class DiceRoll public static void mainString args Create a random object Random random new Random; Generate a random number between 1 and 6 inclusive int roll random.nextInt6 1; Print the result of the dice roll System.out.printlnYou rolled a roll; Here is what this program does: - First, we imported java.util.Random, which is a class that generates random numbers.- Then, we created a new Random object.- Next, we called the nextInt method from the Random class with an argument of 6, which means it will generate a random number between 0 and 5.- Since a dice has numbers from 1 to 6, we added 1 to the result to get the final value of our roll.- Finally, we printed the resulting roll to the console with a message. 