forked from StudentUni/Quran
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Test8.java
28 lines (20 loc) · 859 Bytes
/
Test8.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
public class Test8 {
public static void main(String[] args) {
QuranData myQuran = new QuranData();
// int finding = 2746;
// System.out.printf("Character %S: Verse Index in quran :" + myQuran.getVerseForCharacterNo(finding) + "\nVerse No: "
// + myQuran.getVerseInChapter(myQuran.getVerseForCharacterNo(finding)) + " of Surah: "
// + myQuran.getSurahName(myQuran.getVerseForCharacterNo(finding)), finding);
//
// System.out.println();
//trial for func
int divisions[] = myQuran.getDivisionHeaderByVerse( 1.00,8,6201);
int pages = 0;
for (int r: divisions)
{
pages++;
System.out.println( myQuran.getSurahName(r) + " : " + myQuran.getVerseInChapter(r));
}
System.out.println("Pages : " + pages);
}
}