object demo
{
def main(args:Array[String]):Unit=
{
val temp: LinkedHashMap[String,Object]=new
LinkedHashMap[String,Object]()
temp.put("apple", new Double(1));
// here i received error since double is abstract class and cannot instantitaed
}
}
Error i received was due to abstract class instance i want to instance a integer how to achieve this