Skip to content

Tag: java

Jackson subtypes – how to specify a default

I want to do something like this with subtypes. I have 3 different types of objects: value can either be a string or an object. The corresponding Java classes are I don’t mind having a discriminator inside Obj1 and Obj2, but there is no place for one when the value is just a string. Is there a way that …

strange reuslt when adding integers in JAVA [closed]

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers. This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers. Closed las…

Trying to reverse my stream in ascending order – Java 8

This idea behind this code is that it reads the data from three .csv files w/ keys organized by year, and retrieves the sum of the data by year, as well as the minimum and maximum number for each year. The problem is, when print it returns the yearly results in descending order. I need help figuring out a way

Module not found: javafx.web

I wanted to create a WebView with Javafx, and I added requires javafx.web; to my module-info.jar, but IntelliJ say: “Module not found: javafx.web”. works without any problem. What can I do? Answer Have you also added a dependency to javafx-web in Maven/Gradle or added the corresponding jar file to…