source: DRBLTranslatorHelper/src/GTranslate.java @ 19

Last change on this file since 19 was 14, checked in by sunny, 17 years ago
File size: 508 bytes
RevLine 
[14]1import com.google.api.translate.Language;
2import com.google.api.translate.Translate;
3
4public class GTranslate {
5 
6  public static void main(String[] args) {
7   
8    try {
9      //String translatedText = Translate.translate("Salut le monde", Language.FRENCH, Language.ENGLISH);
10      String translatedText = Translate.translate("Hello World!!", Language.ENGLISH, Language.FRENCH);
11      System.out.println(translatedText);
12     
13    } catch (Exception ex) {
14      ex.printStackTrace();
15    }
16  }
17}
Note: See TracBrowser for help on using the repository browser.