DEANO.ME

array

 

Those of you who are familiar with PHP know a very useful function called explode() which takes a string and a delimiter and splits the string into an array using the delimiter as the splitter. So for instance a string “this|is|a|test” can be split up into an array where: [0] =  this [1] = is […]

 

One useful feature in most programming languages is the ability to resize an array if you need more allocations for data, for instance in VB.NET you would resize an array like this: Dim myArray(4) As Integer Redim Preserve myArray(10) As Integer   In Java however it’s a different story… Java arrays cannot be resized dynamically […]

+1
Tweet
Share
Share
Stumble
Pin
Email
Shares 0