Remove Duplicate Character From String Remove Repeated Character Java Programjavadsajava











>> YOUR LINK HERE: ___ http://youtube.com/watch?v=n8cl0b8chLA

Remove Duplicate Character From String || Remove Repeated Character || Java Program • #java • #javadsa • #coding • 0:00 Intro • 0:12 Lecture • SOURCE CODE • public class strdupliRem { • • public static void RemoveStrDup(boolean arr[],String str,StringBuilder str1,int indx){ • if(str.length()==indx){ • System.out.println(str1); • return; • } • char current= str.charAt(indx); • if(arr[current-'a']==true){ • RemoveStrDup(arr, str, str1, indx+1); • } • else{ • arr[current-'a']=true; • RemoveStrDup(arr, str, str1.append(str.charAt(indx)), indx+1); • } • } • public static void main(String[] args) { • String str=new String( chandramohanp ); • StringBuilder str1=new StringBuilder( ); • boolean[] arr=new boolean[26]; • RemoveStrDup(arr,str,str1,0); • } • }

#############################









Content Report
Youtor.org / YTube video Downloader © 2025

created by www.youtor.org