# Listing Triggers in the Scheduler Listing all Triggers in the scheduler
    String[] triggerGroups;
    String[] triggersInGroup;
    int i;
    int j;

    triggerGroups = sched.getTriggerGroupNames();
    for (i = 0; i < triggerGroups.length; i++) {
       System.out.println("Group: " + triggerGroups[i] + " contains the following triggers");
       triggersInGroup = sched.getTriggerNames(triggerGroups[i]);

       for (j = 0; j < triggersInGroup.length; j++) {
          System.out.println("- " + triggersInGroup[j]);
       }
    }