FatahFollowBetter Programming--ListenShareEver wonder, how to make the text inside TextInputLayout censored and/or partially censored? But the plot twist is, how can you censor the text with… Read More
Appium is an open source tool that enables you to create UI tests for various platforms, including Android, iOS, and Windows, all with a unified API. This feature facilitates code reuse… Read More
In this post, I will be sharing how to replace comma with space in Java with examples. There are two ways to achieve our goal of replacing comma with space in Java:
1. Using replace() method… Read More
In this post, I will be sharing how to replace space with an underscore in Java. There are two ways to achieve our goal of replacing space with an underscore in Java:
1. Using replace() meth… Read More
Below
snippet join the collection elements by a delimiter using streams.public static String join(final Collection> collection, final String delimiter) {
if (collection == null) {
retu… Read More
Selenium has a mechanism to manage keyboard events that might simulate user motions. Consider searching “India” on the Google search engine. In order to see the search results fo… Read More
String manipulation can be useful in many areas. It can help with data mining, text analysis, and data matching. In this tutorial, we will look at a… Read More
There are scenarios when you want to find characters or substrings within a String. For that purpose String class in Java provides accessor methods that return the position within the string… Read More
In this post we'll see different ways to write to a file in Java. Examples given here to write to a file in Java are based on the following options- BufferedOutputStream- BufferedOutputStrea… Read More
Write a function that takes a string and predicate as input and trim all the characters that matches to given predicate. Signaturepublic static String trimLeading(final String str, fi… Read More
When you are displaying date you will convert date to String in required format and print it. But you may need to convert String to date in Java again if- You have to do any date calculation… Read More
Assume you have a fixed length string buffer, and implement a circular queue kind of functionality using it. Example String buffer with size 5 can hold 5 characters ABCDE, When I appe… Read More
In any programming languages, and in many applications, developers have to put list of values. Frequently these are comma ( “,” ) seperated values, but they can also incorporate… Read More
In this article, we will see how to convert String to LocalDateTime in Java.
LocalDateTime class was introduced in Java 8. LocalDateTime represents local date and time without timezone infor… Read More
Java StringBuilder class represents a mutable sequence of characters (string). That is, we can change (or modify) the content of StringBuilder, without creating a new StringBuilder object.
I… Read More
You can replace a substring using replace() method in Java. The String class provides the overloaded version of the replace() method, but you need to use the replace(CharSequence target… Read More
In the previous tutorial, we have known that Byte Stream classes in Java provide sufficient functionality to handle 1 byte (i.e. 8 bits) of any type of I/O operation.
But it is incompatible… Read More
Migration zu Git und GitHub
Java 16 ist das erste Release, das mit dem Sourceverwaltungssystem Git auf Github entwickelt wurde. Im September 2020, zum Ende der Entwicklungsphase von Java 15… Read More
In this tutorial, I will be sharing about the replace() method, replaceAll() method, replaceFirst() method, what is the difference between replace() and replaceAll() method, and how to repla… Read More