String methods – substring

As its name says, it is used to get the substring from the any String. It has 2 types of implementations. String substring(int beginIndex) String substring(int beginIndex, int endIndex) Let’s look at them one...