Skip to content
Courses
DSA to Development
Get IBM Certification
Newly Launched!
Master Django Framework
Become AWS Certified
For Working Professionals
Interview 101: DSA & System Design
Data Science Training Program
JAVA Backend Development (Live)
DevOps Engineering (LIVE)
Data Structures & Algorithms in Python
For Students
Placement Preparation Course
Data Science (Live)
Data Structure & Algorithm-Self Paced (C++/JAVA)
Master Competitive Programming (Live)
Full Stack Development with React & Node JS (Live)
Full Stack Development
Data Science Program
All Courses
Tutorials
Data Structures & Algorithms
ML & Data Science
Interview Corner
Programming Languages
Web Development
CS Subjects
DevOps And Linux
School Learning
Practice
Build your AI Agent
GfG 160
Problem of the Day
Practice Coding Problems
GfG SDE Sheet
Contests
Accenture Hackathon (Ending Soon!)
GfG Weekly [Rated Contest]
Job-A-Thon Hiring Challenge
All Contests and Events
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Sign In
▲
Similar Topics
DSA
22.5k+ articles
Java
10.5k+ articles
Java-Functions
4.1k+ articles
Difference Between
3.6k+ articles
Strings
3.2k+ articles
Java-lang package
390+ articles
java-basics
310+ articles
Java-Strings
220+ articles
Java-String-Programs
130+ articles
java-StringBuffer
37 articles
Java-StringBuilder
35 posts
Popular Articles
Recent Articles
Check if a palindromic string can be obtained by concatenating substrings split from same indices of two given strings
Last Updated: 05 April 2023
Given two strings A and B of length N, the task is to check if any of the two strings formed by splitting both the strings at any index i (0
...read more
Arrays
Strings
Interview Experiences
Algorithms
Searching
Experienced
palindrome
CS - Placements
substring
Java-StringBuilder
DSA
Experiences
Swap the first and last character of a string in Java
Last Updated: 02 November 2023
Given string str, the task is to write a Java program to swap the first and the last character of the given string and print the modified st
...read more
Strings
Java
Java-Strings
Java-StringBuilder
Java-String-Programs
strings
DSA
StringBuilder appendCodePoint() method in Java with Examples
Last Updated: 13 December 2021
The appendCodePoint(int codePoint) method of StringBuilder class is the inbuilt method used to append the string representation of the codeP
...read more
Java
java-basics
Java-Functions
Java-StringBuilder
Similar Topics
DSA
22.5k+ articles
Java
10.5k+ articles
Java-Functions
4.1k+ articles
Difference Between
3.6k+ articles
Strings
3.2k+ articles
Java-lang package
390+ articles
java-basics
310+ articles
Java-Strings
220+ articles
Java-String-Programs
130+ articles
java-StringBuffer
37+ articles
StringBuilder trimToSize() method in Java with Examples
Last Updated: 30 July 2019
The trimToSize() method of StringBuilder class is the inbuilt method used to trims the capacity used for the character sequence of StringBui
...read more
Java
java-basics
Java-Functions
Java-StringBuilder
StringBuilder indexOf() method in Java with Examples
Last Updated: 18 April 2023
In StringBuilder class, there are two types of indexOf() method depending upon the parameters passed to it.indexOf(String str)The indexOf(St
...read more
Java
java-basics
Java-Functions
Java-StringBuilder
StringBuilder lastIndexOf() method in Java with Examples
Last Updated: 18 April 2023
In StringBuilder class, there are two types of lastIndexOf() method depending upon the parameters passed to it.lastIndexOf(String str)The la
...read more
Java
java-basics
Java-Functions
Java-StringBuilder
StringBuilder setLength() in Java with Examples
Last Updated: 29 December 2022
The setLength(int newLength) method of StringBuilder is used to set the length of the character sequence equal to newLength.For every index
...read more
Java
java-basics
Java-Functions
Java-StringBuilder
StringBuilder subSequence() in Java with Examples
Last Updated: 23 April 2023
The subSequence(int start, int end) method of StringBuilder class is the inbuilt method used to return a subsequence of characters lie betwe
...read more
Java
java-basics
Java-Functions
Java-StringBuilder
StringBuilder ensureCapacity() in Java with Examples
Last Updated: 10 July 2020
The ensureCapacity(int minimumCapacity) method of StringBuilder class helps us to ensures the capacity is at least equal to the specified mi
...read more
Java
java-basics
Java-Strings
Java-lang package
Java-Functions
Java-StringBuilder
StringBuilder capacity() Method in Java
Last Updated: 19 December 2024
In Java, the capacity() method of StringBuilder Class is used to return the current capacity of StringBuilder object. The capacity is the am
...read more
Java
java-basics
Java-Functions
Java-StringBuilder
StringBuilder getChars() in Java with Examples
Last Updated: 22 May 2019
The getChars(int srcBegin, int srcEnd, char[] dst, int dstBegin) method of StringBuilder class copies the characters starting at the given i
...read more
Java
java-basics
Java-Strings
Java-lang package
Java-Functions
Java-StringBuilder
StringBuilder codePointAt() in Java with Examples
Last Updated: 15 October 2018
The codePointAt(int index) method of StringBuilder class takes an index as a parameter and returns a character unicode point at that index i
...read more
Java
java-basics
Java-Functions
Java-StringBuilder
StringBuilder codePointCount() in Java with Examples
Last Updated: 04 April 2023
The codePointCount() method of StringBuilder class returns the number of Unicode code points in the specified text range in String contained
...read more
Java
java-basics
Java-Functions
Java-StringBuilder
StringBuilder charAt() in Java with Examples
Last Updated: 15 October 2018
The charAt(int index) method of StringBuilder Class is used to return the character at the specified index of String contained by StringBuil
...read more
Java
java-basics
Java-Functions
Java-StringBuilder
StringBuilder codePointBefore() in Java with Examples
Last Updated: 28 December 2022
The codePointBefore() method of StringBuilder class takes an index as a parameter and returns the "Unicode number" of the character before t
...read more
Java
java-basics
Java-Functions
Java-StringBuilder
First
1
2
3
>>
Last
First
1
2
3
>>
Last
First
1
2
3
>>
Last
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !