I want to do search and replace with the help of java.
I have TreeMap that contains file names and its contents. I have one another TreeMap that contains word and ...
public class Test{
private static final String key = "key";
public static void main(String[] a){
ConcurrentHashMap<String,String > map = new ConcurrentHashMap<String,String>();
System.out.println(map.replace(key,"1"));
...
Hi, i have a problem that i want to replace an value of an key/value pair, but I dont have the approiate key for that, to avoid passing the key throug all methods, I just implemented a method in the delegate class. This is not an answer to your question, I just feel that I have to say that it sounds ...