input: from typing import List
  
  def port_to_python(java_code: str) -> str:
      """
      Port a given Java code snippet to Python 3. The Java code is given as a string and
      the function returns the corresponding Python code as a string.
      
      Example:
      >>> port_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("{", "").replace("}", "").replace("return", "").strip()
      java_code = java_code.split()
      function_name = java_code[0]
      params = ", ".join(java_code[1:-1])
      return_value = java_code[-1]
      return f"def {function_name}({params}): return {return_value}"