This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.google.cloud.translate.Translate; | |
import com.google.cloud.translate.Translate.TranslateOption; | |
import com.google.cloud.translate.TranslateOptions; | |
import com.google.cloud.translate.Translation; | |
public class Translator { | |
public static void main(String[] args) { | |
//Initiate google cloud translation service | |
Translate translate = TranslateOptions.getDefaultInstance().getService(); //1 |