You need to use some sort of translation service.
Java does not understand Arabic, nor English. That is a logical abstraction that will help you write the code that accepts Arabic String and would convert it to English String.
There are some online services (paid) and offline services (low-accuracy). You can check which one works better for you.
You can start with this library that offers a free trial: GitHub - aurasphere/jyandex: A Java library client for Yandex Translate service.