Subremes Codes

Java Challengers #2: String comparisons

In Java, the String class encapsulates an array of char. Put simply, String is an array of characters used to compose words, sentences, or any other data you want.

Encapsulation is one of the most powerful concepts in object-oriented programming. Because of encapsulation, you don’t need to know how the String class works; you just need to know what methods to use on its interface.

When you look at the String class in Java, you can see how the array of char is encapsulated:

To read this article in full, please click here

Статья полностью:Java Challengers #2: String comparisons