|
|
| java |
Expert:love
import java.util.*;
// Example class on HashMap's Functions............................ public class Sample_hashmap { public static void main(String[] args) { // first object of HashMap HashMap hp1 = new HashMap();
hp1.put("DNA", 1); hp1.put("RNA", 2); hp1.put("PROTEIN",3);
// second object of HashMap HashMap hp2 = new HashMap();
hp2.put("luv",1); hp2.put("Anubhav",2); hp2.put("bhushan",3);
// Using functions on HashMap
boolean b = hp1.containsKey("PROTEIN"); System.out.println(" value is ", b);
} }
This is the error it is showing. what to do????
Sample_hashmap.java:27: cannot find symbol symbol : method println(java.lang.String,boolean) location: class java.io.PrintStream System.out.println(" value is ", b); ^ Note: Sample_hashmap.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 1 error
|
| Answers |
| More Questions |
|
|
Post Answers
Ask Question
Facing Programming Problem?
|
|
|
|
|