How to call python function in java : this is my python code:

class myPythonClass:

def table(nb):


    i = 0

    while i < 10: 

        print(i + 1, "*", nb, "=", (i + 1) * nb)

        i += 1 

i need  how to call using :
PythonInterpreter

