Académique Documents
Professionnel Documents
Culture Documents
int count=0;
String temp="";
for(int i=0;i<str.length();i++)
{
char c=str.charAt(i);
for(int j=i;j<str.length();j++)
{
char k=str.charAt(j);
count=count+1;
if(temp.indexOf(c)==-1)
{
temp=temp+c;
count=0;
}
}
}
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
5.