2021年1月27日星期三

How can I call a java class I created in python

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;      }  }    
https://stackoverflow.com/questions/65929634/how-can-i-call-a-java-class-i-created-in-python January 28, 2021 at 09:07AM

没有评论:

发表评论