Can anyone tell me the correct code
PYTHON intermediate course >> file handling >> this code showing error it can't satisfy the test caseimport java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int choice = scanner.nextInt(); String[] categories = {"PCs", "Notebooks", "Tablets", "Phones","Accessories"}; try { // Check if the input choice is within the valid range if (choice >= 0 && choice < categories.length) { System.out.println(categories[choice]); } else { // Out of bounds index System.out.println("Wrong Option\n"); } } catch (Exception e) { System.out.println("An error occurred"); // Capital 'E' in Exception } } } Tell me plz