Comment by Federico klez Culloca on Java Scanner class nested calls for input...
Please don't describe your code, show it instead, in the form of a minimal reproducible example.
View ArticleComment by Federico klez Culloca on how do I fix this missing return...
1) please share your code as text inside the question, not as pictures. 2) what does your method return if that first if is true?
View ArticleComment by Federico klez Culloca on Full Message Erorr
Also, send Little Bobby Tables my regards.
View ArticleComment by Federico klez Culloca on Username undefined en JWT
Hello and welcome. Please ask in English. And please format your code to make it readable.
View ArticleComment by Federico klez Culloca on How do I put a looped scanner input into...
Just don't press enter?
View ArticleComment by Federico klez Culloca on How can I get many integers as variables...
There are two different things you need to do. The search terms you're looking for are split and Integer.parseInt
View ArticleComment by Federico klez Culloca on getting syntax error on a query even if...
Please provide a minimal reproducible example.
View ArticleComment by Federico klez Culloca on How does java.c determine which to call...
Likely via platform-dependent makefiles, or whatever is used to compile the source code. TL;DR, when you compile the source code, the build system detects which OS you're running (or accepts a command...
View ArticleComment by Federico klez Culloca on Java : generics, inheritance and best design
Those two classes don't share any behavior. Why are they both Animals in the first place? You should probably have a forAnimal method which in Dog calls forDog and in Cat calls forCat, then...
View ArticleComment by Federico klez Culloca on VLC When the video list is played, a...
If you generate an answer with ChatGPT at least make sure it has something to do with the question. And even then don't, since Generative AI (e.g., ChatGPT) is banned
View ArticleComment by Federico klez Culloca on Why can I create Comparable objects with...
@АлександрСкворцов well yes, until you put something into it they are.
View ArticleComment by Federico klez Culloca on Why can I create Comparable objects with...
@АлександрСкворцов minor nitpick: String is final, it can't have subclasses.
View ArticleComment by Federico klez Culloca on JPA. Specification, Implementation or both?
They are the implementation provided by whatever framework or application server you're using.
View ArticleAnswer by Federico klez Culloca for Options for command java: Is it called...
According to the documentation it looks like they're both valid and acceptable for Jetty. It's unclear whether the --add-module form accepts more than one argument, but if in doubt I'd use...
View ArticleAnswer by Federico klez Culloca for Why BiPredicate evaluates the two boolean...
No, you're passing three arguments to result:The BiPredicateXYThey get evaluated before calling result, which means the BiPredicate is evaluated and returns a BiPredicate (which is not executed), then...
View ArticleAnswer by Federico klez Culloca for How to change color of a cell in HTML...
row.getElementsByTag("td").get(1) returns an Element, which doesn't have a class method.Though, it has a classNames method, and that accepts a Set<String> as a parameter (even if you just need to...
View ArticleAnswer by Federico klez Culloca for What happens if the first letter of a...
Method names don't have to start with a lower case letter. It's just a shared convention so all developers are on the same page and people reading your code don't have to add extra cognitive load to...
View ArticleAnswer by Federico klez Culloca for What components of the superclass do the...
No need to wonder. We have a rather comprehensive language specification at our disposal.In particularA class C inherits from its direct superclass type D all concrete methods m (both static and...
View ArticleAnswer by Federico klez Culloca for How to handle...
Because it's throwing that exception before even reaching the point where it would throw a ConstraintViolationException.Hereuser.setPasword(bCryptPasswordEncoder.encode(userModel.getPasword()));It's...
View ArticleAnswer by Federico klez Culloca for Why is the double colon operator needed...
Because variables and methods do not share the same namespace in Java, so you can have variables and methods with the same name.This is valid in Java:class Test { private static int c; private static...
View Article
More Pages to Explore .....