Tutorialspoint.dev
Welcome To Tutorialspoint.dev
Officially launched 18th May 2019
C# CSharp-StringBuilder-Class

How to find the length of the StringBuilder in C#

StringBuilder.Length Property is used to get or set the length of the current StringBuilder object. Syntax: public int Length { get; set; } It returns the length of ...
C# CSharp-string

C# String vs StringBuilder

Prerequisite: String in C# StringBuilder is used to represent a mutable string of characters. Mutable means the string which can be changed. So String objects are imm...
C# CSharp-method CSharp-StringBuilder-Class

C# Check if two StringBuilder objects are Equal

StringBuilder.Equals Method is used to check whether this instance is equal to a specified object. Syntax: public bool Equals (System.Text.StringBuilder sb); Here, s...
C# CSharp-StringBuilder-Class

How to find the Capacity of a StringBuilder in C#

StringBuilder.Capacity Property is used to get or set the maximum number of characters that can be contained in the memory allocated by the current instance. Syntax:...
C# CSharp-method CSharp-StringBuilder-Class

How to remove all characters from StringBuilder in C#

StringBuilder.Clear Method is used to remove all the characters from the current StringBuilder instance. Syntax: public System.Text.StringBuilder Clear (); It returns...
Java School Programming java-StringBuffer

String vs StringBuilder vs StringBuffer in Java

Prerequisites : String , Initialize a String Consider below code with three concatenation functions with three different types of parameters, String, StringBuffer a...
Java Java-Library Java-String-Programs

When to use StringJoiner over StringBuilder?

Prerequisite: StringJoiner StringJoiner is very useful, when you need to join Strings in a Stream. Task : Suppose we want the string “[George:Sally:Fred]&#x201...
Java Java - util package Java-Functions

Stream.Builder add() method in Java Stream.Builder accept() method in Java LongStream.Builder build() in Java Stream.Builder build() in Java

Stream.Builder add(T t) is used to insert an element into the element in the building phase of stream. It adds an element to the stream… Read Mo...
Java Java - util package Java-Functions

IntStream.Builder accept() method in Java IntStream.Builder build() in Java with Examples IntStream.Builder add() method in Java

IntStream.Builder accept(int t) is used to insert an element into the element in the building phase of stream. It accepts an element to the stream&#x20...
Java Java - util package Java-Functions

LongStream.Builder add(long t) in Java LongStream.Builder accept() method in Java LongStream.Builder build() in Java

LongStream.Builder add(long t) is used to insert an element into the element in the building phase of stream. It adds an element to the stream… ...

Subscribe to Our Newsletter