private void populateSubChapters(String subChaptersList){
		Scanner subChapterParser = null;
		if(subChaptersList != null){
			subChapterParser = new Scanner(subChaptersList);
		}
		String chapterName;
		int startt;
		int endd;
		if(subChaptersList != null){
			int i = 1; //Used for sub chapters.
			while(subChapterParser.hasNext()){
				chapterName = subChapterParser.nextLine();
				Scanner st = new Scanner(subChapterParser.nextLine());
				startt = st.nextInt();
				Scanner en = new Scanner(subChapterParser.nextLine());
				endd = en.nextInt();
				st.close();
				en.close();
				subChapters.add(new Chapter(chapterName, startt, endd, i, null));
				i++;
			}
		}
		if(subChapterParser != null){
			subChapterParser.close();
		}
	}