Skip to content

Gasg10/Recursive-String-Manipulation-in-Java

Repository files navigation

Recursive String Manipulation in Java

Description

This project implements a set of recursive functions for string manipulation in Java. The functions perform operations such as counting character occurrences, reversing a string, and removing specific characters from a string.

Function Structure

1. f01(String texto, char c, int index)

  • Counts the occurrences of character c in the string texto, starting from the specified index. img_2.png

2. f02(String texto, char compara)

  • Counts the occurrences of character compara in texto using recursion. img_3.png

3. f03(String texto)

  • Recursively reverses the given string texto. img_4.png

4. f04(String texto, char c)

  • Removes all occurrences of character c from texto recursively. img_6.png

5. nomesDasFuncoes()

  • Returns an array of strings with descriptive names for the implemented functions.

How to Use

  1. Clone the repository.
  2. Compile and execute the Main.java class.
  3. Call the functions as needed within the main method or other classes.

Requirements

  • Java 8 or higher

Author

Developed by Gonçalo Gonçalves.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages