{"id":439,"date":"2014-03-12T07:14:35","date_gmt":"2014-03-12T07:14:35","guid":{"rendered":"http:\/\/codethataint.com\/blog\/?p=439"},"modified":"2014-03-12T07:14:35","modified_gmt":"2014-03-12T07:14:35","slug":"how-to-create-array-of-string-in-jython","status":"publish","type":"post","link":"https:\/\/codethataint.com\/blog\/how-to-create-array-of-string-in-jython\/","title":{"rendered":"How to create array of String in Jython"},"content":{"rendered":"<pre class=\"brush: java; title: ; notranslate\" title=\"\">\r\nimport jarray\r\nimport java\r\nmyArray = jarray.array(&#x5B;&quot;mugil&quot;, &quot;Vannan&quot;], java.lang.Object)\r\n\r\nrc.logMessage(str(len(myArray)))\r\n\r\nfor value in myArray:\r\n rc.logMessage(value)\r\n<\/pre>\n<p>For Character<\/p>\n<pre class=\"brush: java; title: ; notranslate\" title=\"\">\r\nmyArray = jarray.array(&#x5B;&quot;m&quot;, &quot;V&quot;], &quot;c&quot;)\r\n<\/pre>\n<p>For Integer<\/p>\n<pre class=\"brush: java; title: ; notranslate\" title=\"\">\r\nimport jarray\r\nimport java\r\nmyArray = jarray.array(&#x5B;1,2,3,4,5,6], java.lang.Integer)\r\n\r\nrc.logMessage(str(len(myArray)))\r\n\r\nfor value in myArray:\r\n rc.logMessage(str(value))\r\n\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>import jarray import java myArray = jarray.array(&#x5B;&quot;mugil&quot;, &quot;Vannan&quot;], java.lang.Object) rc.logMessage(str(len(myArray))) for value in myArray: rc.logMessage(value) For Character myArray = jarray.array(&#x5B;&quot;m&quot;, &quot;V&quot;], &quot;c&quot;) For Integer import jarray import java myArray = jarray.array(&#x5B;1,2,3,4,5,6], java.lang.Integer) rc.logMessage(str(len(myArray))) for value in myArray: rc.logMessage(str(value))<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[70],"tags":[],"class_list":["post-439","post","type-post","status-publish","format-standard","hentry","category-arrays-jython"],"_links":{"self":[{"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/posts\/439","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/comments?post=439"}],"version-history":[{"count":1,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/posts\/439\/revisions"}],"predecessor-version":[{"id":440,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/posts\/439\/revisions\/440"}],"wp:attachment":[{"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/media?parent=439"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/categories?post=439"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/tags?post=439"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}