Larry Chung 84ef2cd246 BAEL-2142 Code revision to WordIndexer and JUnit (#5484)
* Refactoring and Unit testing added based on Kevin Gilmore's advice of Sep 16, 2018

* Refactoring and Unit testing added based on Kevin Gilmore's advice of Sep 16, 2018

* Refactoring and Unit testing added based on Kevin Gilmore's advice of Sep 16, 2018

* Resolve merge conflict

Added dependency for org.passay and for org.apache.commons

* Create searching/WordIndexer.java

* Create WordIndexerUnitTest.java

* Updated in response to Kevin Gilmore's questions

"What happens if the string ends with the word you're searching for? Would the next iteration of the loop cause an error if index + wordLength is greater than the last position of the string? Be sure to test this scenario."

* Updated WordIndexer in response to Kevin Gilmore

Generally speaking, it's good practice to declare return types, parameters, variables using an interface rather than an implementation, if the interface is sufficient to satisfy the need. In this case, there's no reason you can't simply return a List of Integer. (Excellent point, fixed)

The two methods are identical. Isn't the first one supposed to be the naive approach? (It was a copy and paste error, fixed)

* saving changes...

* Update java-strings/src/main/java/com/baeldung/string/searching/WordIndexer.java

Co-Authored-By: codewarrior2000 <lpc34@columbia.edu>

* Update java-strings/src/main/java/com/baeldung/string/searching/WordIndexer.java

Co-Authored-By: codewarrior2000 <lpc34@columbia.edu>

* Update java-strings/src/test/java/com/baeldung/string/searching/WordIndexerUnitTest.java

Co-Authored-By: codewarrior2000 <lpc34@columbia.edu>

* Respond to Kevin Gilmore's code changes

* Debugging code change to JUnit
2018-10-26 21:06:48 -05:00
2018-08-05 20:21:07 +05:30
2018-10-24 22:29:28 +03:00
2018-08-05 20:21:07 +05:30
2018-08-05 20:21:07 +05:30
2018-08-05 20:21:07 +05:30
2018-08-05 20:21:07 +05:30
2018-08-05 20:21:07 +05:30
2018-09-07 13:56:13 +03:00
2018-08-05 20:21:07 +05:30
2018-08-05 20:21:07 +05:30
2018-10-15 12:58:06 +11:00
2018-08-05 20:21:07 +05:30
2018-08-05 20:21:07 +05:30
2018-08-05 20:21:07 +05:30
2018-09-26 18:27:27 +03:00
2018-08-05 20:21:07 +05:30
2018-08-05 20:21:07 +05:30
2018-10-12 22:22:56 +02:00
2018-08-05 20:21:07 +05:30
2018-08-05 20:21:07 +05:30
2018-08-05 20:21:07 +05:30
2018-09-19 08:59:29 +05:30
2018-08-30 23:33:42 +05:30
2018-09-02 21:15:50 +01:00
2018-08-05 20:21:07 +05:30
2018-10-12 22:22:56 +02:00
2018-08-05 20:21:07 +05:30
2018-08-05 20:21:07 +05:30
2018-08-05 20:21:07 +05:30
2018-08-05 20:21:07 +05:30
2018-09-05 08:18:57 +02:00
2018-08-05 20:21:07 +05:30
2018-08-14 23:50:33 +03:00
2017-11-17 21:24:47 -03:00
2018-08-05 20:21:07 +05:30
2018-10-04 21:03:45 +02:00
2018-08-05 20:21:07 +05:30
2018-08-05 20:21:07 +05:30
2018-03-25 18:24:11 +02:00
2018-10-01 21:28:53 -05:00
2018-08-05 20:21:07 +05:30
2018-08-05 20:21:07 +05:30
2018-09-07 13:56:13 +03:00
2018-08-05 20:21:07 +05:30
2018-10-26 00:27:46 -05:00
2018-08-05 20:21:07 +05:30
2018-08-05 20:21:07 +05:30
2018-09-07 13:56:13 +03:00
2018-08-05 20:21:07 +05:30
2018-08-05 20:21:07 +05:30
2018-10-12 22:22:56 +02:00
2018-08-05 20:21:07 +05:30
2018-08-05 20:21:07 +05:30
2018-10-14 22:19:23 -05:00
2018-08-05 20:21:07 +05:30
2018-08-05 20:21:07 +05:30
2018-08-05 20:21:07 +05:30
2018-08-05 20:21:07 +05:30
2018-08-05 20:21:07 +05:30
2018-09-09 15:05:57 +03:00
2018-08-05 20:21:07 +05:30
2018-09-07 13:56:13 +03:00
2018-08-05 20:21:07 +05:30
2018-10-17 20:02:53 +02:00
2018-09-07 13:56:13 +03:00
2018-08-05 20:21:07 +05:30
2018-10-23 01:57:41 -07:00
2018-08-05 20:21:07 +05:30
2018-08-05 20:21:07 +05:30
2018-08-05 20:21:07 +05:30
2018-08-05 20:21:07 +05:30
2018-08-05 20:21:07 +05:30
2018-08-05 20:21:07 +05:30
2018-10-20 22:26:50 +03:00
2018-10-26 22:30:56 +03:00
2018-08-05 20:21:07 +05:30
2018-09-07 13:56:13 +03:00
2018-08-05 20:21:07 +05:30
2017-11-17 21:24:47 -03:00
2018-04-13 07:08:55 +02:00
2018-08-05 20:21:07 +05:30
2018-08-05 20:21:07 +05:30
2017-11-17 21:24:47 -03:00
2017-11-17 21:24:47 -03:00
2018-08-05 20:21:07 +05:30
2018-09-07 13:56:13 +03:00
2018-08-05 20:21:07 +05:30
2018-08-05 20:21:07 +05:30
2018-10-12 22:22:56 +02:00
2018-10-20 06:29:05 +02:00
2018-08-05 20:21:07 +05:30
2018-10-26 23:25:49 +03:00
2018-10-12 22:22:56 +02:00
2018-10-12 22:22:56 +02:00
2018-10-08 20:25:36 +02:00
2018-10-23 17:56:26 +05:30
2018-09-25 23:31:40 -04:00
2018-08-05 20:21:07 +05:30
2018-08-05 20:21:07 +05:30
2018-08-05 20:21:07 +05:30
2018-08-05 20:21:07 +05:30
2018-08-05 20:21:07 +05:30
2018-08-05 20:21:07 +05:30
2018-08-05 20:21:07 +05:30
2018-10-23 01:57:41 -07:00
2018-08-05 20:21:07 +05:30
2017-11-17 21:24:47 -03:00
2017-11-29 16:36:08 +02:00
2018-10-21 10:20:13 +03:00

The "REST with Spring" Classes

Here's the Master Class of REST With Spring (along with the newly announced Boot 2 material):
>> THE REST WITH SPRING - MASTER CLASS

And here's the Master Class of Learn Spring Security:
>> LEARN SPRING SECURITY - MASTER CLASS

Java and Spring Tutorials

This project is a collection of small and focused tutorials - each covering a single and well defined area of development in the Java ecosystem. A strong focus of these is, of course, the Spring Framework - Spring, Spring Boot and Spring Securiyt. In additional to Spring, the following technologies are in focus: core Java, Jackson, HttpClient, Guava.

Building the project

To do the full build, do: mvn install -Pdefault -Dgib.enabled=false

Building a single module

To build a specific module run the command: mvn clean install -Dgib.enabled=false in the module directory

Running a Spring Boot module

To run a Spring Boot module run the command: mvn spring-boot:run -Dgib.enabled=false in the module directory

Description
No description provided
Readme MIT 267 MiB
Languages
Java 88%
HTML 3.6%
JavaScript 2.7%
TypeScript 2.4%
CSS 1.5%
Other 1%