#vulnerable code 
                                private void showCpuUtilizationForAllHosts() {
        System.out.println("\nHosts CPU utilization history for the entire simulation period");
        int numberOfUsageHistoryEntries = 0;
        for (Host host : hostList) {
            double mipsByPe = host.getTotalMipsCapacity() / (double)host.getNumberOfPes();
            System.out.printf("Host %d: Number of PEs %2d, MIPS by PE %.0f\n", host.getId(), host.getNumberOfPes(), mipsByPe);
            for (Map.Entry<Double, Double> entry : host.getUtilizationHistorySum().entrySet()) {
                final double time = entry.getKey();
                final double cpuUsage = entry.getValue()*100;
                numberOfUsageHistoryEntries++;
                System.out.printf("\tTime: %4.1f CPU Utilization: %6.2f%%\n", time, cpuUsage);
            }
            System.out.println("--------------------------------------------------");
        }

        if(numberOfUsageHistoryEntries == 0) {
            System.out.println("No CPU usage history was found");
        }
    } 
                            #location 11 
                            #vulnerability type CHECKERS_PRINTF_ARGS
#fixed code
                                private void showCpuUtilizationForAllHosts() {
        System.out.printf("%nHosts CPU utilization history for the entire simulation period%n");
        int numberOfUsageHistoryEntries = 0;
        for (Host host : hostList) {
            double mipsByPe = host.getTotalMipsCapacity() / (double)host.getNumberOfPes();
            System.out.printf("Host %d: Number of PEs %2d, MIPS by PE %.0f%n", host.getId(), host.getNumberOfPes(), mipsByPe);
            for (Map.Entry<Double, Double> entry : host.getUtilizationHistorySum().entrySet()) {
                final double time = entry.getKey();
                final double cpuUsage = entry.getValue()*100;
                numberOfUsageHistoryEntries++;
                System.out.printf("\tTime: %4.1f CPU Utilization: %6.2f%%%n", time, cpuUsage);
            }
            System.out.println("--------------------------------------------------");
        }

        if(numberOfUsageHistoryEntries == 0) {
            System.out.println("No CPU usage history was found");
        }
    }