Sir ,This program logic is not working when we have a string like "aabbjgghh" . Because when i =1 and iteration continues , again character ''a' will be unique .
@ManiKandan-vo2qr4 жыл бұрын
Hello sir can you please upload the same program for the integers ? First non repetitive numbers?
@indiantourism9754 жыл бұрын
Thank you Sir
@Manikandan-yd6vf4 жыл бұрын
Hai sir...I'm learning java from ur channel ..it is possible to post some videos on java swing concept
@vijayv545911 ай бұрын
intha program la verum first letter matum tha compare pandranga.... matha letters compare agala..... "welcome " potu patha 'w' matum tha compare aguthu.... could you please correct this program sir..
@wolf_gamer_1005 ай бұрын
Compare two strings sir
@LeoEditx2 жыл бұрын
String la == use pannakudathunu solringa apram y inga use panringa
@aleishavijay48112 жыл бұрын
adhu character a compare panranga. not string
@maheshwaranboomibalan99122 жыл бұрын
public class FirstNonRepeatedChar { public static void main(String arg[]) { System.out.println("main method"); String str = "khabcahbcde"; int length = str.length(); for (int i = 0; i < length; i++) { // pass the string boolean isRepeated = false; for (int j = 0; j < length; j++) { // check first non reperated char if(str.charAt(i) == str.charAt(j) && i != j) { isRepeated = true; break; } } if(!isRepeated) { System.out.println(str.charAt(i) + " is not repeated"); break; } } } }