text processing Archives - SoftUni Global
https://softuni.org/tag/text-processing/
Learn Programming and Start a Developer JobFri, 13 May 2022 11:11:36 +0000en-US
hourly
1 https://wordpress.org/?v=6.1.3https://softuni.org/wp-content/uploads/2022/04/cropped-SoftUni-Global-Logo-Square-notext-32x32.pngtext processing Archives - SoftUni Global
https://softuni.org/tag/text-processing/
3232[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/#respondThu, 11 Nov 2021 11:06:00 +0000https://softuni.org/?p=8660Learn 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 videocovers 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 problems. To 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.