input: def port_java_to_python(java_code: str) -> str:
      """Converts a given Java code snippet into its equivalent Python 3 code.
      >>> port_java_to_python('public class Foo { public int foo(int a, int b) { return a + b; } }')
      def foo(a, b):
       return a + b
      """
output:     java_code = java_code.replace('public class ', '').replace('public ', '').replace('int ', '').replace('{', '').replace('}', '')
      java_code = java_code.replace(';', '\n').replace('return ', 'return ')
      return java_code.strip()