diff --git a/translate/snippets/src/main/java/com/example/translate/QuickstartSample.java b/translate/snippets/src/main/java/com/example/translate/QuickstartSample.java index 8339650d077..ce9c01d4399 100644 --- a/translate/snippets/src/main/java/com/example/translate/QuickstartSample.java +++ b/translate/snippets/src/main/java/com/example/translate/QuickstartSample.java @@ -40,7 +40,7 @@ public static void main(String... args) throws Exception { System.out.printf("Text: %s%n", text); - System.out.printf("Translation: %s%n", translation.translatedText()); + System.out.printf("Translation: %s%n", translation.getTranslatedText()); } } // [END translate_quickstart]