character last program Java Program To Find First And Last Occurrence Of Given Character In A String 20 Jul, 2021 For that first you need to get the index of the separator and then using the substring method get the substring after …