Skip to content

How to use ArrayList get() method in Android Studio

I made a code using an ArrayList (short[]) in Android Studio but when I use the get() method it always return the last data stored and I don’t know why. I’m using two buttons, one execute adquirir_audio() just to store some values. The second one prints in the console the stored data using a for l…

OffsetTime.parse causes an exception with ISO_TIME formatter

I am trying to convert between LocalTime and strings by using the ISO_TIME formatter, but I get an exception. My Code is like: the last line throws an exception: Why is this happening and how could I solve this problem? Thanks in advance for any help, Anas Answer This is happening because, well, it’s ri…

IntelliJ debug maven package included in EAR

After deploying an EAR to a local Weblogic instance, I’m remote debugging the application without problems. However, I cannot seem to get debug connection to a maven package that I’ve added as a maven dependency to the project (jar). Debug config: Showing working debug connection in source code: N…

Gradle : Failed to notify build listener

When we build our application using gradle, it is throwing the exception below .Following is the build.gradle code: I am getting the below error : Build file, line: 81 Failed to notify build listener. ‘org.gradle.api.file.FileCollection org.gradle.api.publish.maven.internal.publication.MavenPublicationI…

streaming from Java OpenCV through RTMP

I have a JavaFX Application that uses OpenCV to get the frames from the camera. I would like to send this stream to nginx-rtmp. I must be missing something (or the whole loginc of RTMP) but I can’t seem to find a simple way to make the stream I already tested the nginx-rtmp with OBS Studio, and I have t…

Can’t get local and utc Instant

I need to get local time and utc time in seconds. I read some posts in StackOverflow and found some solution, which is correct as mentioned: But result is not what I expected. It is utc time. The output: After debugging I found that Instant.now() is already utc. I can’t find how to get time in current t…