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.
Java Regex 2 - Duplicate Words
Java Regex 2 - Duplicate Words
Sort by
recency
|
343 Discussions
|
Please Login in order to post a comment
This code works, but if you remove the comments, it doen't work anymore!
Here are two codes that work correctly in the ide I use, but this site does not accept the answer.
import java.util.*;
public class Soru { public static void main(String[] args) {
public class Solution {
public static void main(String[] args) { Scanner in = new Scanner(System.in); int num =in.nextInt(); in.nextLine();
}
}
I can't find where the problem is. This code also works in the IDE I use, but it is not accepted here.
import java.io.; import java.util.; import java.util.regex.Matcher; import java.util.regex.Pattern;
public class Solution {
}
import java.util.Scanner; import java.util.regex.Matcher; import java.util.regex.Pattern;
public class DuplicateWords {
}
this is my answer, but why there is no output in hackerrank? I try to execute it using my IDE and it works fine. I even copy paste one of the answer in discussions but it does not show any output.
}