System.out.println("duplicate value is "+" "+ str[i]);
In int array, "==" is used to compare 2 values in for loop where as in String array to compare ".equals" is used.
Is this correct way or there is any better solution?
M
Replied on 12/07/2016
seems fine. is it working properly?
M
Replied on 12/07/2016
Yes. it is working fine. But for int array, "==" is used to compare 2 values in for loop where as in String array to compare ".equals" is used. Is this correct logic or is there any better solution?