I wanted to create a method to search through a array list to see if the objects in the array list end with the given char character and then return the count of the character as a int.
public int OccurencesOfCharacter(Char givenCharacter){
....
}
Here's my array List
private ArrayList<Class> list;
For example if the Array List Contained [ Games, iphones] and my given occurrence character was 's' i want to return 2 because it appears twice at the end of the strings.