Infosys interview question

Program to give first non-repeated character in string?

Interview Answer

Anonymous

29 Apr 2019

public class NonRepeateChar { public static void main(String[] args) { HashMap hmap = new HashMap(); String s="ccdctdcdg"; char[] c = s.toCharArray(); for(int i=0;i

2