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 Hashset
- Discussions
Java Hashset
Java Hashset
Sort by
recency
|
409 Discussions
|
Please Login in order to post a comment
Please fix Test 5. The Expected results are not correct. It goes wrong at line 191.
Solved case5: //Write your code here HashSet pairs = new HashSet<>();
any one help ee to solve the error in this code import java.io.; import java.util.; import java.text.; import java.math.; import java.util.regex.*;
public class Solution {
}
HashSet myhash = new HashSet(); for (int i = 0; i < t; i++) { myhash.add(pair_left[i]+"#"+pair_right[i]); System.out.println(myhash.size()); }
it is right code ? but compiler show error me every time test case 5 failed