Concatenating a string in Java is the most easiest thing that you'll learn. You might already be familiar with one way using the simp...
Read More
Home » String Handling
Showing posts with label String Handling. Show all posts
Showing posts with label String Handling. Show all posts
Using Startswith() And Endswith() In String
Here is a dead simple tutorial on startsWith() and endsWith() . The startsWith() method is used to check if a string starts with a give...
Read More
How To Replace Backslash In Java?
Using the following way, we can easily replace a backslash in Java. The replaceAll() method, as you know, takes two parameters out of wh...
Read More
Compare Two Strings In Java Lexicographically
The compareTo(T ob) method in the Comparable class is implemented in the String class and this implemented method takes java.lang.String...
Read More
Check If String Is Palindrome In Java
Let us check if the string is a palindrome in Java. The idea is common, and the implementation is simple.These few lines will check the s...
Read More
Recursively Search For String In Java
Illustrating searching string recursively in Java and getting it's indexes & also no.of times the string occurred. This logic is...
Read More

Reverse Words And Letters In String
The following example illustrates reversing words and letters in a string. This is in fact a Google interview question and now it's sol...
Read More

Concat More Than 2 Strings In Java
A simple logic to concat more than 2 (unlimited) no.of strings in Java. Here is the piece of code. Concat Unlimited Strings - Example ...
Read More
Subscribe to:
Posts (Atom)