input: 
  def convert_java_to_python(java_code: str) -> str:
      """ Converts a Java code snippet to Python 3.
      >>> convert_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 ', '').replace('class ', '').replace('int ', '').replace('{', '').replace('}', '').replace(';', '')
      java_code = java_code.replace('(', '(').replace(')', ')')
      java_code = java_code.replace('return ', 'return ')
      java_code = java_code.strip()
      return java_code