News

Since the introduction of the Java Collections Framework with JDK 1.2 , I have used Java arrays significantly less frequently than I used to.
StringBuilder and its Methods When you start using loops in Java and manipulating Strings inside them one of the warnings you will get from IntelliJ is that you are using Strings inside a loop when a ...
Declaring Arrays in Java To define an array in Java, we may do it in one of two methods. The syntax for defining a Java array as well as a variable is exactly the same. They must both have data types ...
Both Arrays.toString(Object[]) and Arrays.deepToString(Object[]) handle null array gracefully, simply returning a String “null”. I tend to use Java Collections far more than I use Java arrays.
In Java an array is a way of storing multiple items of the same type. In this quick tutorial we introduce you to the very basics.
Converting string to char array — toCharArray () taking substrings — substring () Replacing in string — replace () Replacing first occurence — replaceFirst () joining two strings — string1.concat ...