code: private void displayQueueList() throws IOException {
      JobQueueInfo[] queues = jc.getQueues();
      for (JobQueueInfo queue : queues) {
        String schedInfo = queue.getSchedulingInfo();
        if(schedInfo.trim().equals("")){
          schedInfo = "N/A";
        }
        System.out.printf("Queue Name : %s \n", queue.getQueueName());
        System.out.printf("Scheduling Info : %s \n",queue.getSchedulingInfo());
      }
    }
docs: Method used to display the list of the JobQueues registered
  with the {@link QueueManager}
  
  @throws IOException