Video 9: Java String Basics | Beginners Guide | Core Java

preview_player
Показать описание
►A String in Java is an object that represents a sequence of characters.
►Strings are immutable, meaning that their value cannot be changed after they are created.
►Strings are created using double quotes, e.g. "Hello, World!".
►Strings can be concatenated using the + operator or the concat() method.
►Strings can be compared using the equals() method or the == operator.
►The length of a String can be obtained using the length() method.
►Substrings can be obtained from a String using the substring() method.
►Strings can be searched for a specific character or substring using the indexOf() and lastIndexOf() methods.
►The String class also provides various methods for manipulating and formatting Strings, such as trim(), toLowerCase(), toUpperCase(), replace(), and split().
#CodingWithHamid #javabeginners #corejava
Рекомендации по теме
join shbcf.ru