[6/12] Java Foundations Certification: Strings and Text Processing

Share on facebook
Share on twitter
Share on linkedin
Learn about strings and text processing in Java, how to read and print strings, how to search in a string, how to extract a substring, how to remove a substring and how to build a string.

In this lesson introduces strings and provides an in-depth explanation of text processing in Java. It includes several very important topics surrounding strings – the StringBuilder class, concatenation and why it’s a slow operation, the methods concat(), indexOf(), contains(), split(), replace(), and many more. 

As always, we advise you to pause the video right before the solving part of each problem and try to do the exercises on your own first. Then, if you have difficulties, just watch the provided solutions in the video. If you still have questions, we’re always here to help! Join our Facebook group and ask away!

*The exercise descriptions are to be found in the PDF document at the end of this article.

If you are new to programming, make sure to watch the Free Full Java Basics course first, as it is a necessary prerequisite to this one. It explains the topics in a lot more detail, as this video aims to revise them and get to more complex topics after that.
This course is also perfect for people who have some background in programming with a different language and would like to pick up on Java.

Lesson Topics

This video covers the following topics:

What is a String?

  • Overview
  • Reading and printing strings
  • Converting a String from and to a char array

Manipulating Strings

  • concat()
  • String.join()
  • substring()
  • indexOf(), lastIndexOf()
  • contains()
  • split()
  • repllace()

Building and Modifying Strings

  • Using the StringBuilder class
  • Why concatenation is a slow operation?

Remember that coding is a skill, which should be practiced. To learn to code, you should write code, every day, for a long time. Watching tutorials is not enough. You should code! Now it’s your turn. Do your exercises!

Leave a Comment

Scroll to Top
small_c_popup.png

Sign in

Don’t have an account? Register with us to join the community.