{"id":654,"date":"2012-10-08T22:58:22","date_gmt":"2012-10-08T22:58:22","guid":{"rendered":"http:\/\/codeatelier.wordpress.com\/?p=339"},"modified":"2012-10-08T22:58:22","modified_gmt":"2012-10-08T22:58:22","slug":"looping-through-arguments-in-function","status":"publish","type":"post","link":"https:\/\/codethataint.com\/blog\/looping-through-arguments-in-function\/","title":{"rendered":"Looping through Arguments in Function"},"content":{"rendered":"<p>How to Loop Through Arguments Passed to function <\/p>\n<pre>\npackage com.apryll.package2;\n\npublic class sample2 \n{\n public static void main(String args[])  \n {\n  sample2 objsample2 = new sample2();\n  objsample2.argCount(1, 2, 3, 4);\n }\n\t\n public void argCount(int... args)\n {\n   System.out.println(args.length);\n }\n}\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>How to Loop Through Arguments Passed to function package com.apryll.package2; public class sample2 { public static void main(String args[]) { sample2 objsample2 = new sample2(); objsample2.argCount(1, 2, 3, 4); } public void argCount(int&#8230; args) { System.out.println(args.length); } }<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[51],"tags":[],"class_list":["post-654","post","type-post","status-publish","format-standard","hentry","category-arrays"],"_links":{"self":[{"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/posts\/654","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=654"}],"version-history":[{"count":0,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/posts\/654\/revisions"}],"wp:attachment":[{"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/media?parent=654"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/categories?post=654"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/tags?post=654"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}