parameters: ()
return_statement: return version_regex.search(version_line).group()
docstring: Returns the string for the current version of Java installed.
docstring_summary: Returns the string for the current version of Java installed.
docstring_tokens: Returns the string for the current version of Java installed .
function: def GetJavaVersion():
    """Returns the string for the current version of Java installed."""
    proc = subprocess.Popen(['java', '-version'], stderr=subprocess.PIPE)
    proc.wait()
    version_line = proc.stderr.read().splitlines()[0]
    return version_regex.search(version_line).group()
function_tokens: def GetJavaVersion ( ) : proc = subprocess . Popen ( [ 'java' , '-version' ] , stderr = subprocess . PIPE ) proc . wait ( ) version_line = proc . stderr . read ( ) . splitlines ( ) [ 0 ] return version_regex . search ( version_line ) . group ( )