W wl Well-Known Member Licensed User Longtime User Aug 4, 2014 #1 Hello, I'm looking into using a very simple java class with a single method that returns an array of strings. What should be the returntype of the method in Java ? String[] ? Would this translate into an Array in B4J ? Or could the Java method return something that translates into a B4J map ? Thanks !
Hello, I'm looking into using a very simple java class with a single method that returns an array of strings. What should be the returntype of the method in Java ? String[] ? Would this translate into an Array in B4J ? Or could the Java method return something that translates into a B4J map ? Thanks !
Erel B4X founder Staff member Licensed User Longtime User Aug 4, 2014 #2 Java String[] is identical to B4J Array of strings: Dim x() As String. You can return a Map by adding a reference in your library to jCore and then creating a B4J Map (anywheresoftware.b4a.objects.collections.Map). Upvote 0
Java String[] is identical to B4J Array of strings: Dim x() As String. You can return a Map by adding a reference in your library to jCore and then creating a B4J Map (anywheresoftware.b4a.objects.collections.Map).