android application/app/src/main/java/com/slensky/focussis/fragments/DemographicFragment.java
private static String ordinal(int i) {
        String[] sufixes = new String[]{"th", "st", "nd", "rd", "th", "th", "th", "th", "th", "th"};
        switch (i % 100) {
            case 11:
            case 12:
            case 13:
                return i + "th";
            default:
                return i + sufixes[i % 10];

        }
    }
// for formatting the student's grade/level
for formatting the student's grade/level
for formatting the student ' s grade / level
private static String ordinal(int i) {
        String[] sufixes = new String[]{"th", "st", "nd", "rd", "th", "th", "th", "th", "th", "th"};
        switch (i % 100) {
            case 11:
            case 12:
            case 13:
                return i + "th";
            default:
                return i + sufixes[i % 10];
        }
    }
private static String ordinal ( int i ) { String [ ] sufixes = new String [ ] { "th" , "st" , "nd" , "rd" , "th" , "th" , "th" , "th" , "th" , "th" } ; switch ( i % 100 ) { case 11 : case 12 : case 13 : return i + "th" ; default : return i + sufixes [ i % 10 ] ; } }
for formatting the student's grade/level
for formatting the student ' s grade / level