Understanding Strings and String operations in Java

Опубликовано: 05 Октябрь 2024
на канале: DesignCodeDebugRepeat
93
2

This series of videos is suitable for programmers with some programming or Java experience who want to learn object-oriented programming and dig deeper into some other Java features. This video is an introduction to Strings -- how they're represented in memory, how they're indexed, and how to compare them and search through them. This video is suitable to watch after reading Chapter 7 of Java, Java, Java: Object-oriented problem solving, by Morelli, Walde, and Hoffman. However, the video is very straightforward and can also stand alone or accompany any other textbook that has introduced Java Strings and a little bit of object-oriented programming. Let's have some fun learning to program in Java!

The classes in this video are in my github repository, available here:
https://github.com/ProfessorBurke/Jav...

Here is the Java, Java, Java text:
https://runestone.academy/ns/books/pu...

You can practice writing the loop that searches for l's in "Hello, world!" here*:
https://codecheck.io/files/2212160233...

You can practice writing the search and replace method here*:
https://codecheck.io/files/2212160211...

If you want to earn credit for learning to code, take an online course at CCRI! These videos are part of the Advanced Java course:
https://ccri.edu/comp/

*The CodeCheck system courtesy of Cay Horstmann, https://horstmann.com/codecheck/

00:00 What are strings?
02:11 How strings are stored
05:55 Comparing strings
07:22 Searching in a string