2021-01-28

How can I call a java class I created in python [duplicate]

I have the following java class which I want to call it in python using Pyjnius. Can someone shows me an example python code that uses the Test class in python? I tried to follow the documentation but it only shows how to import Java built-in class like Stack. I really appreciate any help.


class Test {
    private String name;
    public Test(String name) {
        this.name=name;
    }

    public String getName() {
        return this.name;
    }

    public void updateName(String name) {
        this.name=name;
    }
}



from Recent Questions - Stack Overflow https://ift.tt/3qVBq4e
https://ift.tt/eA8V8J

No comments:

Post a Comment