We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Java
- Data Structures
- Java Map
- Discussions
Java Map
Java Map
Sort by
recency
|
366 Discussions
|
Please Login in order to post a comment
Simple solution
//This is my solution, use in case to need class Solution{ public static void main(String []argh) { Scanner in = new Scanner(System.in); int n=in.nextInt(); in.nextLine(); Map find = new HashMap<>(); for(int i=0;i
Java 8: