input: from typing import List
  
  def port_java_to_python(java_code: str) -> str:
      """Ports a given Java code snippet to Python 3.
      >>> port_java_to_python(\"\"\"public class Foo {
    public int foo( int a, int b ) {
      return a + b;
    }
  }\"\"\")
      'def foo(a, b):\\n return a + b'
      """
output:     java_code = java_code.replace("public class ", "").replace("{", "").replace("}", "").strip()
      java_code = java_code.replace("public ", "").replace("int ", "").replace(";", "")
      java_code = java_code.replace("return ", "return ")
      java_code = java_code.replace("(", "(a, b):").replace(")", "")
      return java_code.strip()