array – POFTUT

Java ArrayList Tutorial with Examples

Java ArrayList Tutorial with Examples

Java programming language provides the ArrayList which is a class of resizeable array. ArrayList is an implementation of the array structure in programming languages. ArrayList contains different types of elements in a single variable. ArrayList Features ArrayList provides some features to be used different implementations. ArrayList inherits the AbstractList class and implements the List interface. … Read more

Powershell Array Tutorial with Examples

Powershell arrays are used to store a collection of elements in a single variable. These elements do not to be the same type and declared in different ways. Create Array We will start with a simple example where we will create an array by providing the items. Items will be delimited with the comma. The … Read more

Foreach Usage In PHP, JavaScript, Java, C#, Python Programming Languages with Examples

Loops are an important part of the programming languages. For and While loops are used for decades in different programming languages. Foreach provides similar functionality in a more elegant way by iterating over the given list. In this tutorial, we will examine foreach in different programming languages like PHP, JavaScript, Java, C# and Python. PHP … Read more

Php – Array Variable Type

[rps-include post=6522] We have used single value variable types up to now. But the real world problems may need different solutions and variables then those. We generally define,use multiple and a lot of values. Defining one by one variable is not a practical solution for these situations. For example we want to store 5 students … Read more

C – Arrays

[rps-include post=6557] Arrays are different from primitive types like integer,chars. Arrays provides fixed length sequential data. All of the data is same type. We can think array like a same type list. Arrays uses indexes to specify specific item in array. Declaring Arrays There is two must do to define array. One is the type … Read more

C String Variable Type

[rps-include post=6557] String is multiple characters added together. “Hi Poftut” is a string. Actually C do not direct String type but character type is used to store single and multiple characters. Character Character types is defined with char keyword. Single character will hold 1 byte in the memory. Character type normally hold ASCII characters but third … Read more

Linux Bash Environment Variables

Environment is shell running session and session related info. environment is important part of the Linux bash. We can set variables at the current environment and use them. Bash also provides some default environment variables too. Create Variables While Login You may need to create variable at login time of the user. For example to … Read more

Python JSON Encoder and Decoder Tutorial with Examples

JSON or Javascript Object Notations is a RFC standard which is used to define complex data types with number 7159.  JSON became very popular in recent years because of its compatibility and simplicity. Python have rich support web applications and popular framework Django is developed with python too. So we generally need to use JSON with … Read more

How To Shuffle/Randomize Array in PHP

There are different ways to randomly select elements of an array in PHP. But recurring elements are biggest problem most of them. Here the clean and PHP library supported solution for this. We will use shuffle() function which will change the positions of the given array. Shuffle Example shuffle() function accept only single parameter which is the … Read more