I want to test if these two Strings are the same but I am not sure where I am doing wrong. Could it be because of HashMap ? how can I make this "if" work? Because of the reputation thing I cannot add any image of it![Debug mode shows val[0] -->> "000" (**id=52)****
private static String convert (final String s) {
String temp = s;
final Iterator<String[]> sic = sections.iterator();
while (sic.hasNext()) {
final String[] val = sic.next();
String a=val[0]; String b="000"; //val[0] is 000 and showed as "000" in debug mode as well.
if(a.equals(b)){ //this must give a true
val[0]="1003" ;}
temp = temp.replaceAll("\n(" + val[1] + ")\r?\n--*\r?\n", val[0].length()>0 ? "\n\u25b4\u25ba"+val[0]+"\n$1\n": "\n\n\n"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ //$NON-NLS-5$
}
return (temp + "\u25b4").replaceAll("\u25ba212(\n" + ratioRam +"\u25b4)","\u25ba222$1");
}
EDIT: I thought sections are not so important here since we know the value of this section. If Sections are important then Adding synonym words different code numbers - java . Also in debug modus for a there are hash , hash32, value and in value for [0]--> 0, for [1]--> 0, for [2]---> 0