2
I have a video running in my application and a Thread running a Socket(server), all within the same class, but I need this Thread to access a method that is outside of it.
To be more exact I want to run getCurrentTime() to take the current time when the video is running and send by Socket to another application.
Even if you run in an environment other than Java 8, I really recommend using lambda notation. You can do lambda backward compatibility with previous versions using the Retrolambda
– Jefferson Quesado