Here you can find the source of loadPriority()
public static void loadPriority()
//package com.java2s; //License from project: Open Source License import java.io.BufferedReader; import java.io.FileReader; import java.util.ArrayList; public class Main { private static final String PAGEOBJECT_PATH = "./src/main/resources/com/properties/"; private static ArrayList<String> priorityList; public static void loadPriority() { if (priorityList == null) priorityList = new ArrayList<String>(); try {//from ww w .j av a 2 s . c o m FileReader fr = new FileReader(PAGEOBJECT_PATH + "priority.list"); BufferedReader br = new BufferedReader(fr); String line = ""; while ((line = br.readLine()) != null) { line = line.trim(); if (line.startsWith("#") || line.length() == 0) continue; priorityList.add(line.toUpperCase()); } br.close(); fr.close(); } catch (Exception e) { System.out.println("Error in priority file"); } } }