An open API service indexing awesome lists of open source software.

https://github.com/dbc2201/javacodingproblem3


https://github.com/dbc2201/javacodingproblem3

Last synced: about 1 year ago
JSON representation

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/)