https://github.com/dbc2201/javacodingproblem3
https://github.com/dbc2201/javacodingproblem3
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/dbc2201/javacodingproblem3
- Owner: dbc2201
- Created: 2022-05-26T06:33:33.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2023-12-14T06:51:25.000Z (over 2 years ago)
- Last Synced: 2025-02-12T08:38:56.691Z (over 1 year ago)
- Language: Java
- Size: 11.7 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Java Coding Problems
## Chapter 1: Strings, Numbers, and Math
---
### Problem Statement : Reversing Letters and Words
Write a program that reverses the letters of each word and a program that reverses the letters of each word and the
words themselves.
### Sample Input & Output
```
reverseWords("laptop") => "potpal"
reverseWords("hello world") => "olleh dlrow"
reverse("java coding problems") => "smelbrop gnidoc avaj"
reverse("hello world") => "dlrow olleh"
```
---
* [Source Code](src/main/java/io/github/dbc/ReverseEngineer.java)
* [Main Class](src/main/java/io/github/dbc/Main.java)
* [Test Class](src/test/java/io/github/dbc/ReverseEngineerTest.java)
---
> Question taken from the book
> ["Java Coding Problems"](https://www.packtpub.com/product/java-coding-problems/9781789801415) by
> [Anghel Leonard](https://github.com/AnghelLeonard).
> Formatted and uploaded by [dbc2201](https://github.com/dbc2201)
---
**Suggested Reading:**
1. ['Strings' @ dev.java](https://dev.java/learn/strings/)
2. ['String Builders' @ dev.java](https://dev.java/learn/string-builders/)