{"id":2014,"date":"2022-09-15T18:03:25","date_gmt":"2022-09-15T18:03:25","guid":{"rendered":"https:\/\/gyanipandit.com\/programming\/?p=2014"},"modified":"2022-09-15T18:03:53","modified_gmt":"2022-09-15T18:03:53","slug":"array-class-in-java","status":"publish","type":"post","link":"https:\/\/gyanipandit.com\/programming\/array-class-in-java\/","title":{"rendered":"Array Class\u00a0in Java"},"content":{"rendered":"<p style=\"text-align: center;\"><strong>Some methods from Arrays class<\/strong><\/p>\n\n\n<p>Now, let&#8217;s have a talk about some methods from the Arrays class too since we have discussed quite arrays. Let&#8217;s discuss some static methods from the Arrays class that would help us in many ways, like sorting the array, searching through the array, filling the array with some particular value, etc. We will also see another way to print the array, which is basically printing the string representation of the array.<\/p>\n\n\n\n<p>Some basic things that we are going to have here are &#8211;<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Printing string representation of an array.<\/li><li>Sorting the array.<\/li><li>comparison<\/li><li>Searching in the array.<\/li><li>Filling the array.<\/li><\/ul>\n\n\n\n<p>One thing to note \u2013 while we will be using the methods from the Arrays class, we have to import the Arrays class with the following instruction so that we can comfortably use the methods &#8211;<\/p>\n\n\n\n<p class=\"has-background-color has-foreground-background-color has-text-color has-background\">import java.util.Arrays;<\/p>\n\n\n\n<p>First of all, let&#8217;s see one method, which helps us print the string representation of the array so that we can use it later while we will need to print the array.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Some methods from Arrays class Now, let&#8217;s have a talk about some methods from the Arrays class too since we have discussed quite arrays. Let&#8217;s discuss some static methods from the Arrays class that would help us in many ways, like sorting the array, searching through the array, filling the array with some particular value, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[12,11],"class_list":{"0":"post-2014","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-java-tutorial","7":"tag-java","8":"tag-java-tutorial"},"_links":{"self":[{"href":"https:\/\/gyanipandit.com\/programming\/wp-json\/wp\/v2\/posts\/2014","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gyanipandit.com\/programming\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gyanipandit.com\/programming\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gyanipandit.com\/programming\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gyanipandit.com\/programming\/wp-json\/wp\/v2\/comments?post=2014"}],"version-history":[{"count":3,"href":"https:\/\/gyanipandit.com\/programming\/wp-json\/wp\/v2\/posts\/2014\/revisions"}],"predecessor-version":[{"id":3032,"href":"https:\/\/gyanipandit.com\/programming\/wp-json\/wp\/v2\/posts\/2014\/revisions\/3032"}],"wp:attachment":[{"href":"https:\/\/gyanipandit.com\/programming\/wp-json\/wp\/v2\/media?parent=2014"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gyanipandit.com\/programming\/wp-json\/wp\/v2\/categories?post=2014"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gyanipandit.com\/programming\/wp-json\/wp\/v2\/tags?post=2014"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}