I have a LinkedHahMap map1 whcih holds key as my beam_current which is of double type and value as my logtime which is of string type. Now I want to use this map1.keySet() in my sql query as-
Set<Double> arr= map1.keySet();
String vs2="select b.beam_current, b.beam_energy where
b.logtime between '"+first+"' and '"+last+"' and b.beam_current in('"+arr+"')";
But when I use arr which holds value of map1 key ,**nothing is being displayed.**Can't we use map1.KeySet() method in sql query or I'm implemting it in wrong way??