Skip to main content

Posts

Showing posts from June, 2012

How to install a Notepad++ Plugin?

Steps to Install: Download the plugin from the Notepad++ Site: http://sourceforge.net/projects/npp-plugins/Unzip the plugin into the plugin folder under the Notepad++ source folder usually its something like this: C:\Program Files (x86)\Notepad++\plugins Restart the application Notepad++You will now see the plugins under “Plugins –> Compare”Enjoy Comparing

Convert String Array to Collection

How to convert a String Array to a Collection?Before we get to know how to convert a String Array into a Collection. We might want to know more details about the two…What’s the difference between a String Array and a Collection?Collection: It’s a group of data manipulated as a single object. Technically, its an interface in java which is implemented by various other classes. Many of which you uses regularly. One of its implementations can be seen in an array. An array best defined by the Sun is “An array is a container object that holds a fixed number of values of a single type.” So by implementing Collection interface, an Array skips the code required for its implementation – that is now taken care by the Collection interface!Why would I want to  convert a String Array into a CollectionA Collection contains “Objects” if you understand the language…An Object is more generic implementation of the data types. So in a Collection, you can have any type of Object…So while writing down your…