Use Java to suppress deprecation warnings for Console methods.