Skip to content

Tag: java

Saving an ArrayList<ArrayList> to File

I am able to save an ArrayList to a file without any problems, but when I try to write and read an ArrayList<ArrayList<Integer>> to file it nulls out the values. I cannot find an example of this format working, or any subject matter as to why it wouldn’t work. Does anyone have any insight in…

Remaining days taking one date as a reference in Java

I have a variable of type LocalDateTime which has a date stored, for example 14/03/2020. I would like to know how I can get the days remaining to be again the 14th day of the month 3; in this case (from August 1, 2022), there are 225 days. I really have no idea how to get that value. Answer Determine

How to call a Java method from Javascript

How do you call a Java method/ function from Javascript? Java Function: Javascript Function: Answer To call java code from javascript in your react-native app, you have to create a module I suggest reading the docs: https://reactnative.dev/docs/native-modules-android Java code – android/app/src/main/jav…

Spring boot – Maven – BUILD FAILURE

Hello I’m having trouble starting spring boot and I really don’t know whats going on. I have tried with the POM and the Aplication.properties but I just can’t find whats wrong. Here is the log: ——————————————…

Change voice of MaryTTS to French

I started to use MaryTTS in a java project and it’s working fine but with an english voice : I need to set the voice to French. So this is my pom.xml : Those are my dependencies, so I have the maryTTS one, and the one that should bring me the french voice that I take on MavenSearch : https://search.mave…