<prompt> Andika code ifuatayo katika Java.import requests Make a GET request to the MediaWiki API to retrieve a random Wikipedia page response requests.get Parse the response JSON to get the title of the random page random_title response.json queryrandom0title Print the title of the random page printrandom_title  <response>: Unfortunately, this code is written in Python which is different from Java. Here is a Java code snippet which performs a similar task using the HttpUrlConnection class:import java.net.HttpURLConnection;import java.net.URL;import java.io.BufferedReader;import java.io.InputStreamReader;import org.json.;public class RandomWikiPage public static void mainString args try make a GET request to retrieve a random Wikipedia page URL url new URL HttpURLConnection con HttpURLConnection url.openConnection; con.setRequestMethodGET; read the API response into a string BufferedReader in new BufferedReadernew InputStreamReadercon.getInputStream; String response ; String line; while line in.readLine ! null response line; in.close; parse the response JSON to extract the title of the random page JSONObject json new JSONObjectresponse; String randomTitle json.getJSONObjectquery.getJSONArrayrandom.getJSONObject0.getStringtitle; print the title of the random page System.out.printlnrandomTitle; catch Exception e e.printStackTrace; Note that this code needs the JSON library from org.json package. 