Comment by Federico klez Culloca on convert 401 exception to 204 in spring boot
Make a custom exception handler that just returns a 204 and throw that exception when you receive a 401 from that API.
View ArticleComment by Federico klez Culloca on identify the differences
You mean you're not seeing the extra set of parentheses around the first group or what?
View ArticleComment by Federico klez Culloca on Count Distinct in an array | With Math |...
@amangupta "Have you seen a problem [...]" assume we haven't. Can you please link to that problem statement and its solution? And even then, it doesn't mean the solution to that problem can be...
View ArticleComment by Federico klez Culloca on showing error . what is the correct code...
What errors are you seeing?
View ArticleComment by Federico klez Culloca on Why does this code cause an increase in...
Please [edit] your question to include a minimal reproducible example so that readers can run your code to answer your question. Also please explain what your code is supposed to do in the first place.
View ArticleComment by Federico klez Culloca on Find the occurrences of | not more than 3...
Do you actually need to use a regex or is that just an idea you came up with but are open to different methods?
View ArticleComment by Federico klez Culloca on Floating point numbers and computer...
Hello and welcome. Please share the code you used to get those results.
View ArticleComment by Federico klez Culloca on Why is my time computation not the same...
"So when the number of schools varies, the total computations should take the same time right ?" no, that assumption is wrong. You have an outer loop which effectively acts as a multiplier for the...
View ArticleComment by Federico klez Culloca on Flip consecutive zeroes to ones in k...
Maybe I'm misunderstanding the problem, but can't you just get all the substrings made up of 0s, sort them by length and sum the lenghts of the first k strings + the number of 1s already present in the...
View ArticleComment by Federico klez Culloca on Spring Boot 2.7.4 / CVE-2016-1000027
Reading the description of the CVE it says "if used for Java deserialization of untrusted data. Depending on how the library is implemented within a product, this issue may or not occur, and...
View ArticleComment by Federico klez Culloca on Random conditional string
There's a couple of answers in there on how to build your own, for example stackoverflow.com/a/55885045/133203 and stackoverflow.com/a/51823845/133203
View ArticleComment by Federico klez Culloca on Why can't I make a single method to add a...
An error 500 would leave a stack trace in your log. What error do you see and where in your code?
View ArticleComment by Federico klez Culloca on gradle-based IntelliJ project: How do set...
Works on my machine (java 21.0.2). Double check the line before the return and make sure you're looking at the correct file (e.g., you have saved the file)
View ArticleComment by Federico klez Culloca on como puedo mejorar la velocidad de mi...
Hello and welcome. Even if this was written in English it would be impossible to answer as it is too broad and doesn't include enough details about your current situation. Please read How to Ask.
View ArticleComment by Federico klez Culloca on error in first line of joption, what can...
By the way, the output says the error is on line 1. Can you please show that too? More generally, can you please show a minimal reproducible example reproducing the error?
View ArticleComment by Federico klez Culloca on Why does using the Pair class in Java...
I'm not sure big-O notation is the ideal way to describe this situation, considering you have a fixed input size, so any (non-contrived) solution is gonna be O(1).
View ArticleComment by Federico klez Culloca on LinkedList cannot be resolved to a type
The only problems I see here is that Info is not defined. Does LinkedList<String> qe = new LinkedList<>(); work or do you get the same error?
View ArticleComment by Federico klez Culloca on I went to a system like Facebook or google
Please [edit] your question to provide more background details on your problem. Telling readers about your research, what you have already tried, and why it didn’t meet your needs will allow them to...
View ArticleComment by Federico klez Culloca on Scanner skipping .hasNextDouble()
Can you please [edit] your question to include a sample of the file you're trying to read?
View ArticleComment by Federico klez Culloca on Is there a guideline or strategy to...
This questions would probably be better received in the Software Engineering StackExchange, but be sure to read their documentation before asking there.
View Article