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

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. 

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

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?

Practical Exercises

Watch the video and solve the problemsTo better understand the material, do the coding exercises and implement the knowledge you acquired. Writing code is the only way to master the skill of code.

Submit your code in the SoftUni Judge System:

Exercises: Problem Description

Lesson Slides

Leave a Comment

Recent Posts

About SoftUni

SoftUni provides high-quality education, profession and job to people who want to learn coding.

The SoftUni Global “Learn to Code” Community supports learners with free learning resources, mentorship and community help.

Tags

Categories