strings Archives - SoftUni Global https://softuni.org/tag/strings/ Learn Programming and Start a Developer Job Fri, 13 May 2022 11:11:36 +0000 en-US hourly 1 https://wordpress.org/?v=6.1.3 https://softuni.org/wp-content/uploads/2022/04/cropped-SoftUni-Global-Logo-Square-notext-32x32.png strings Archives - SoftUni Global https://softuni.org/tag/strings/ 32 32 [6/13] Java Foundations Certification: Strings and Text Processing https://softuni.org/code-lessons/java-foundations-certification-strings-and-text-processing/ https://softuni.org/code-lessons/java-foundations-certification-strings-and-text-processing/#respond Thu, 11 Nov 2021 11:06:00 +0000 https://softuni.org/?p=8660 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.

The post [6/13] Java Foundations Certification: Strings and Text Processing appeared first on SoftUni Global.

]]>

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

The post [6/13] Java Foundations Certification: Strings and Text Processing appeared first on SoftUni Global.

]]>
https://softuni.org/code-lessons/java-foundations-certification-strings-and-text-processing/feed/ 0