human
Count of words ending at the given suffix in Java | Function declared to return the count of words in the given sentence that end with the given suffix.
Variable to store count.
split function used to extract words from sentence in form of list.
using for loop with ' in ' to extract elements of list.
returning the count.
Driver Code.
printing the final cde"
Solution in Python:

=====
Write me a code to count of words ending at the given suffix in Java and the other steps required?
assistant
#Here is code to count of words ending at the given suffix in Java and the other steps required.
 def endingWith ( str , suff ) :
	c = 0
	wrd = str . split ( " ▁ " )
	for l in wrd :
		if l . endswith ( suff ) :
			c += 1
	return c
str = " GeeksForGeeks ▁ is ▁ a ▁ computer ▁ science ▁ portal ▁ for ▁ geeks "
suff = " ks "
print ( endingWith ( str , suff ) )