Names = "A, B, C, D, E" arrNames = Names.split(",") for x in range(len(arrNames)): print arrNames[x]
Category Archives: Arrays
How to create array of String in Jython
import jarray import java myArray = jarray.array(["mugil", "Vannan"], java.lang.Object) rc.logMessage(str(len(myArray))) for value in myArray: rc.logMessage(value)
For Character
myArray = jarray.array(["m", "V"], "c")
For Integer
import jarray import java myArray = jarray.array([1,2,3,4,5,6], java.lang.Integer) rc.logMessage(str(len(myArray))) for value in myArray: rc.logMessage(str(value))