String ends with a specific character or text using Java program (Core Java Interview Question #420)

Published --