package test852010;
why this code sometimes work properly and sometimes doesn't? some times it doesn't remove "class" from the original String(l)
public class test { static String l = new String("href=http://en.wikipedia.org/wiki/Videoconferencing"+ " class="+"l"); public static void main(String[] args) { if (l.contains("class=")){ l.replace("class=",""); System.out.println(l); } else System.out.println("No"); } }