Posts

Showing posts with the label Jython List operations

Jython List in wsadmin

A list can hold following type of data variables numbers strings  List varieties on wsadmin shell Let us have different data into the list and then try to access the elements using index values. wsadmin>varlist=[100,'Raghav', 99.9,'M'] wsadmin>print varlist [100, 'Raghav', 99.9, 'M'] wsadmin>print varlist[2] 99.9 wsadmin>print varlist[1] Raghav Number List in Jython Lets experiment with different numbers on Jython shell. When I entered big number then Jython shell throwing Overflow error. To fix this we need to append 'L' this is only for assigning the values of List elements. wsadmin>numlist=[9000,9999999999, 8988,0] Traceback (innermost last): (no code object) at line 0 OverflowError: integer literal too large wsadmin>numlist=[9000,9999999999L, 8980, 0] wsadmin>print numlist[1] 9999999999 wsadmin>print numlist[3] 0 String Lists String variable also works in similar to other data types. He...