public static void main(String[] args) { // fetch and print result PartyFetcher pf = new PartyFetcher(); int upTo = 522; for (int no = 519; no <= upTo; no++) { // fetch monster Monster mm = null; try { mm = pf.fetch(no); } catch (Exception e) { System.out.println("fetch no:" + no + " failed:" + e.getMessage()); e.printStackTrace(); continue; } if (mm == null) { System.out.println("no:" + no + " not found"); continue; } System.out.println(mm.toString()); } }