One of Java function's argument is List<String[]>
jArrayList = autoclass('java.util.ArrayList')
jString = autoclass('java.lang.String')
words = ['a', 'b', 'c']
javaWords = [jString(w) for w in words]
arraylist = jArrayList()
arraylist.add(javaWords)
But I get the following JavaException: No methods matching your arguments when I call arraylist.add(javaWords).
What is the solution for this?
jArrayList = autoclass('java.util.ArrayList')
jString = autoclass('java.lang.String')
words = ['a', 'b', 'c']
arraylist = jArrayList()
for w in words:
arraylist.add(jString(w))
--
You received this message because you are subscribed to a topic in the Google Groups "Kivy users support" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/kivy-users/YkO9G4efcjI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to kivy-users+unsubscribe@googlegroups.com.
To post to this group, send email to kivy-...@googlegroups.com.
Visit this group at https://groups.google.com/group/kivy-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/5e27147b-db93-4923-8fe3-cea1a3e4b363%40googlegroups.com.