ArrayList Java

ArrayList in Java is the most commonly used data structure for creating a dynamic size array. It extends the Abstract class and implements the Java List interface. The main difference between array and ArrayList is that the array is static(we cannot add or remove elements) while ArrayList is dynamic(we can …

Read moreArrayList Java

Java List

A Java list or List Interface in Java is a collection or sequence of elements in an ordered manner. Since the list maintains a particular sequence, we can perform any operation like add, delete, get, set on the list using the required index. The index always starts at 0. It …

Read moreJava List

PHP Full Form

PHP Full Form is Hypertext Preprocessor. Initially, the abbreviation was the Personal Home Page. Rasmus Lerdorf created PHP in the year 1994. What is PHP PHP is an open-source server-side scripting language. We can use PHP for creating websites like static, dynamic, or web applications. We can embed the PHP …

Read morePHP Full Form

Categories PHP

Arrays in Java

Arrays in Java are the most widely used data structure which stores multiple values of the same data type in sequential order. The array has fixed length and the index starts from 0 to n-1 where n is the length of an array. We can use arrays to store any …

Read moreArrays in Java

PHP Replace String

In PHP, we can replace a string or an array of string with another string or an array of string using str_replace. In this article, we will explain about PHP replace string operation. Syntax of PHP replace String str_replace(find,replace,string,count) This method uses 4 parameters as described below: find – This …

Read morePHP Replace String

Categories PHP

Java Substring

Substring() method of String class in Java is used to retrieve a part of the given string. Java Substring method returns a new string based on the index. Substring in Java used extensively for string operations. Java Substring Syntax public String substring(int startIndex, int endIndex); startIndex – The index from …

Read moreJava Substring