import com.google.api.translate.Language; import com.google.api.translate.Translate; public class GTranslate { public static void main(String[] args) { try { //String translatedText = Translate.translate("Salut le monde", Language.FRENCH, Language.ENGLISH); String translatedText = Translate.translate("Hello World!!", Language.ENGLISH, Language.FRENCH); System.out.println(translatedText); } catch (Exception ex) { ex.printStackTrace(); } } }