"Code for finding the first non repeating character of a given String"
{
/* This method returns index of the first non -repeating
{
{
{
{
}
}
}
}
// Main Method
{
String str = "mindstick.com";
System. out. println ( index == -1 ? "Either all characters are repeating " : "First non-repeating character is : : " + str . charAt( index));
}
}