Use java code

Hello,

in my app I want to use an algorithm written in Java.
For doing that I wanna write a cordova plugin.
But is it possible to use this cordova plugin also in IOS?

No, you would have to rewrite the algorithm in Swift.