
Python String count()
In this tutorial, we will learn about the Python String count() method with the help of examples. The count() method returns the number of occurrences of a […]
In this tutorial, we will learn about the Python String count() method with the help of examples. The count() method returns the number of occurrences of a […]
The casefold() method is an aggressive lower() method which converts strings to case folded strings for caseless matching. The casefold() method removes all case distinctions present in […]
The center() method returns a string which is padded with the specified character. The syntax of center() method is: 1. center() Parameters The center() method takes two arguments: width […]
In Python, the capitalize() method converts first character of a string to uppercase letter and lowercases all other characters, if any. The syntax of capitalize() is: 1. […]
In this example, you will learn to count the number of occurrences of a character in a string. To understand this example, you should have […]
In this example, you will learn to compute all the permutation of the string. To understand this example, you should have the knowledge of the […]
In this example, you will learn to capitalize the first character of a string. To understand this example, you should have the knowledge of the […]
In this example, you will learn to trim whitespace from a String. To understand this example, you should have the knowledge of the following Python programming topics: […]
In this example, you will learn to check if a string is a number (float). To understand this example, you should have the knowledge of […]
In this example, you will learn to get a substring of a string. To understand this example, you should have the knowledge of the following Python […]
In this example, you will learn to parse a string to a float or int. To understand this example, you should have the knowledge of […]
This program removes all punctuations from a string. We will check each character of the string using for loop. If the character is a punctuation, […]
In this program. you’ll learn to check whether a string is palindrome or Not To understand this example, you should have the knowledge of the […]
In this article we’ll cover various methods that work with regexps in-depth. 1. str.match(regexp) The method str.match(regexp) finds matches for regexp in the string str. It has 3 modes: If […]
1. Overview The built-in eval function allows to execute a string of code. The syntax is: For example: A string of code may be long, contain line […]
Hashing algorithms are helpful in solving a lot of problems. We want to solve the problem of comparing strings efficiently. The brute force way of […]
This is the Java Program to Print all Possible Permutations of a String.Problem Description Given a string, print all the different words that can be […]
1. Overview This quick tutorial will show how to use Jackson 2 to convert a JSON String to a JsonNode (com.fasterxml.jackson.databind.JsonNode). If you want to dig deeper and […]
1. Java String.String() String objects can be created by either using literals: or by calling one of the constructors: If we use the String literal, it’ll try to reuse […]
1. Overview The Apache Commons Lang 3 library provides support for manipulation of core classes of the Java APIs. This support includes methods for handling strings, numbers, […]