Driver code
public static void main ( String args [ ] ) { String str = " GeeksForGeeks ▁ is ▁ a ▁ computer " + " ▁ science ▁ portal ▁ for ▁ geeks " ; String suff = " ks " ; System . out . print ( endingWith ( str , suff ) ) ; } }