input: from typing import List
  
  def port_java_to_python(java_code: str) -> str:
      """ Converts a given Java code snippet to 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):\\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):\\n return ").replace(")", "")
      return java_code