Commit Graph

66 Commits

Author SHA1 Message Date
Sam Millington b4eee1e231 BAEL-2419: Added String Concatenation Unit Tests (#5898) 2018-12-24 10:02:29 -03:00
Shashank agarwal fda7ff2690 Added Character Array method (#5965)
* Added the code of Replace char in a string at specific index

* added test cases

* Renamed the Test class name end with UnitTest

* Renamed the Test class name end with UnitTest

* Renamed the Test class name end with UnitTest

* Replaced README with the upstream repo

* Added Char Array Method
2018-12-23 09:27:01 -06:00
charlesgonzales 81cda95e71
Update README.md 2018-12-20 22:02:28 +08:00
Shashank agarwal 547f99925f Added the code of Replace char in a string at specific index (#5869)
* Added the code of Replace char in a string at specific index

* added test cases

* Renamed the Test class name end with UnitTest

* Renamed the Test class name end with UnitTest

* Renamed the Test class name end with UnitTest

* Replaced README with the upstream repo
2018-12-19 22:49:27 -06:00
Loredana Crusoveanu 46c8f48d3c
Merge branch 'master' into BAEL-2313-String-to-byte-array 2018-12-16 12:39:51 +02:00
PranayVJain b6e0928f5b BAEL-2337: Moved code from java-strings to algorithm-miscellaneous-1 (#5905) 2018-12-14 22:31:26 -06:00
Surapaneni Venkata Kiran cb7e515723 BAEL-2421
* Changes for http://jira.baeldung.com/browse/BAEL-2421

* fixed formatting

* Merged the test and main classes as per the suggestion.

* Merged the source code with tests.
2018-12-12 11:19:45 -08:00
PranayVJain 5072291b32 BAEL-2337: Find Substring which are palindromes (#5766)
* BAEL-2337: Added test cases to find substring which are palindromes

* BAEL-2337: Changed the names of the variables

* BAEL-2237: Formatted code using formatter.xml

* BAEL-2237: Renamed method and added variety of test cases

* BAEL-2337: Renamed unit test cases name according to BBD style naming convention
2018-12-07 21:16:28 -06:00
collaboratewithakash d78915cdda Back-links added - Akash (#5846)
* Back-link formatting issue resolved

* Back-link added

* Back-link added

* Back-link added

* Back-link added

* Back-link added

* Back-link added

* Back-link added

* Back-link added

* Back-link added

* Back-link added

* Back-link added

* Back-link added

* Back-link added

* Back-link added

* Back-link added (please fix the formatting too)

* Back-link added

* Back-link added

* Back-link added

* back-link added

* Back-link added

* Back-link added

* Back-link added

* Back-link added

* Back-link added

* Back-link added

* Back-link added
2018-12-06 18:27:24 +01:00
fanatixan 857192358c bael-2361 (#5804)
* bael-2361

* Update RemoveLeadingAndTrailingZeroes.java

* moving examples to java-string project
2018-12-02 10:36:38 -08:00
KevinGilmore a2b79472d9
BAEL-2246: add link back to article (#5824) 2018-12-01 07:10:46 -06:00
FrancoCorleone 55aff7f5f2 Upgrading commons lang3 and guava dependencies (#5790)
* Upgrading Guava package

* Upgrading commons lang3 package
2018-11-30 04:35:27 -08:00
FrancoCorleone a1de031c67 Add joining primitives tests (#5740)
* Add joining primitives tests

* Small refactor

* Fix naming for PMD

* Add char examples to testing cases

* Fix literal separator

* CR changes
2018-11-25 21:14:20 -06:00
Emily Cheyne 29c9eb4445
BAEL-2330 (#5776)
update readme
2018-11-25 16:05:39 -08:00
amit2103 bff2c6f5b0 [BAEL-10780] - Added code for the checking string input article 2018-11-25 01:25:41 +05:30
kyleandari 58a536c395 BAEL 2330
* Implementing Hexagonal Architecture in java

* Removing duplicates from a string

* Fix for the code review feedback
- removing the hexagonal architecture code
- removing the methods removeDuplicatesUsingCharArray
- adding some meaningful sentences to test

* Fix for the code review feedback
- fix for removeDuplicatesUsingCharArray
- adding unit testing
- adding brackets around for loops

* Fix for the code review feedback

* Adding remove duplicates using java 8 distinct
adding assets to the unittests to test for empty strings

* Checking for empty strings in unit tests
Adding an if statement to check whether an empty string is passed to removeDuplicatesUsingSorting method
2018-11-23 07:46:20 -08:00
Seun Matt 4d3b4ca3f0 Moved example code for BAEL-2366 (#5752)
* added example code for BAEL-2366

* moved example code for BAEL-2366
2018-11-21 23:02:44 -08:00
Chandra Prakash 6b7dfe79ba
Update README.md 2018-11-21 20:31:03 -05:00
KevinGilmore d751dc2eae
BAEL-2166 BAEL-2302 update README (#5728)
* BAEL-2015: add link back to article

* BAEL-2166 BAEL-2302 add links back to articles
2018-11-18 22:55:50 -06:00
kyleandari eba76ca5a2 BAEL-2330 (#5694)
* Implementing Hexagonal Architecture in java

* Removing duplicates from a string

* Fix for the code review feedback
- removing the hexagonal architecture code
- removing the methods removeDuplicatesUsingCharArray
- adding some meaningful sentences to test

* Fix for the code review feedback
- fix for removeDuplicatesUsingCharArray
- adding unit testing
- adding brackets around for loops

* Fix for the code review feedback
2018-11-18 19:56:37 -08:00
eric-martin 3defeb3e96 Moved AddingNewLineToString from core-java to java-strings 2018-11-17 11:20:06 -06:00
Eric Martin 06bb9653b9
Merge pull request #5661 from cror/substring-indexof
BAEL-2365: added 2 further examples with substring and indexOf
2018-11-12 21:17:29 -06:00
chandra 243323c55f Modified sample inputs to make the tests more meaningful. 2018-11-12 21:36:21 -05:00
cdjole c0a5e01918 Pad string. (#5669) 2018-11-11 19:44:35 -08:00
cror 129aa9ddc9 BAEL-2365: added 2 further examples with substring and indexOf 2018-11-11 16:18:36 +01:00
chandra be17633174 BAEL-2313 Convert String to Byte Array and Reverse in Java 2018-11-09 21:08:02 -05:00
charlesgonzales 23143a0c17 Bi-monthly test fix - BAEL-10195 (#5626)
* Update README.md

* Update README.md

* Create README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Create README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Create README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.MD
2018-11-08 21:23:23 +01:00
Varun Upadhyay 085825e149
Fixed a bug in findWord method 2018-11-01 18:18:10 -07:00
KevinGilmore 18d7252bdf
BAEL-2142 README update (#5595)
* BAEL-1766: Update README

* BAEL-1853: add link to article

* BAEL-1801: add link to article

* Added links back to articles

* Add links back to articles

* BAEL-1795: Update README

* BAEL-1901 and BAEL-1555 add links back to article

* BAEL-2026 add link back to article

* BAEL-2029: add link back to article

* BAEL-1898: Add link back to article

* BAEL-2102 and BAEL-2131 Add links back to articles

* BAEL-2132 Add link back to article

* BAEL-1980: add link back to article

* BAEL-2200: Display auto-configuration report in Spring Boot

* BAEL-2253: Add link back to article

* BAEL-2200 BAEL-2287 Add links back to articles

* BAEL-2176: add link back to article

* BAEL-2142: add link to article
2018-11-01 07:12:53 -05:00
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
Loredana Crusoveanu 82e93b87a2
Merge pull request #5474 from Doha2012/master
convert string to byte array
2018-10-18 23:13:15 +03:00
Loredana Crusoveanu 6fd52ad66c
Update StringToByteArrayUnitTest.java 2018-10-18 22:59:29 +03:00
Tom Hombergs 550663be83
Merge pull request #5315 from eugenp/thombergs-patch-31-1
added link
2018-10-18 21:17:06 +02:00
the-java-guy 8c3598b441 BAEL - 2166 (#5379)
* Bean Object, server side and client side example for event streaming
example

* BAEL-1628

Access a File from the Classpath in a Spring Application

* inputstream retrieval added

* Removed files related to evaluation article

* + Aligning code to the article. Removed Utility methods and classes

* Precommit fix

* PMD fixes

* Code Review changes
Refactored : whenResourceUtils_thenReadSuccessful

* BAEL-1934

* +indentation correction in pom.xml

* synced with master

* Precommit : rebase

* BAEL-1782

* BAEL - 2166 : Password Generation

* Removed unnecessary javaDoc

* Segregated utility method
2018-10-17 23:11:25 -05:00
DOHA 8ef39f81b4 string to byte array 2018-10-16 23:04:15 +03:00
Rokon Uddin Ahmed 3c35e25015 BAEL-9344 (#5435)
* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.MD

* Update README.md

* Update README.md

* Update README.md

* Create README.md

* Update README.md

* Update README.md
2018-10-12 22:22:56 +02:00
Tom Hombergs 1a51c01c9f
Merge branch 'master' into thombergs-patch-31-1 2018-10-08 20:28:07 +02:00
Tom Hombergs 82dfce8f6c
Merge branch 'master' into thombergs-patch-31-1 2018-10-02 20:40:24 +02:00
Tom Hombergs 0550bb1c77
Merge branch 'master' into thombergs-patch-27 2018-10-02 20:39:00 +02:00
Mher Baghinyan 2224e723fd Bael 2053 (#5331)
* String performance class

* String intern performance

* String performance replace

* String performance concat

* String performance split

* String performance convert

* String performance comparison

* String performance ==

* String performance check length

* String performance

* String performance matches

* String performance hints

* String performance %d

* fixing benchmark tests

* String performance final

* method naming convention fix

* renaming class name

* remove loops

* String performance review checked

* remove methods

* remove unnecessary class after the merge

* Delete pom.xml
2018-09-27 19:02:28 +02:00
charlesgonzales 4cbc8d0bac To add/fix links (Team Jira BAEL-9015) (#5332)
* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.MD

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Create README.md

* Create README.md

* Update README.md

* Update README.MD

* Update README.md

* Update README.md

* Update README.md

* Update README.md
2018-09-27 09:09:58 +02:00
Tom Hombergs 33d5e71084
added link 2018-09-23 15:26:48 +02:00
Mher Baghinyan 5d7cc11745 Bael 2053 (#5161)
* String performance class

* String intern performance

* String performance replace

* String performance concat

* String performance split

* String performance convert

* String performance comparison

* String performance ==

* String performance check length

* String performance

* String performance matches

* String performance hints

* String performance %d

* fixing benchmark tests

* String performance final

* method naming convention fix

* renaming class name

* remove loops
2018-09-22 10:25:52 +02:00
Saikat 6a09ba47e8 Check String is not empty
Issue: BAEL-2128
2018-09-19 10:56:11 -06:00
Tom Hombergs 68618ed5e0
added link 2018-09-15 22:08:35 +02:00
Loredana Crusoveanu 9dbdfcf31f
Merge pull request #5233 from dkapil/task/BAEL-8901
BAEL-8901 Add section in "Stream operations on Strings" article
2018-09-13 09:13:34 +03:00
Dhawal Kapil 107e6a75be Feature/bael 2118 dhawal (#5231)
* [BAEL-2118] - Add a section in String Split Article

* [BAEL-2118] - Formatting and upgraded to JUNIT 5
2018-09-13 06:49:41 +02:00
Dhawal Kapil 708d64c183 BAEL-8901 Add section in "Stream operations on Strings" article
- Added string array to map example.
2018-09-12 12:13:51 +05:30
KevinGilmore 7a099e385e
BAEL-2132 Update README (#5218)
* BAEL-1766: Update README

* BAEL-1853: add link to article

* BAEL-1801: add link to article

* Added links back to articles

* Add links back to articles

* BAEL-1795: Update README

* BAEL-1901 and BAEL-1555 add links back to article

* BAEL-2026 add link back to article

* BAEL-2029: add link back to article

* BAEL-1898: Add link back to article

* BAEL-2102 and BAEL-2131 Add links back to articles

* BAEL-2132 Add link back to article
2018-09-09 22:55:31 -05:00
Loredana Crusoveanu 8debae2dd4
Merge pull request #5193 from eugenp/mvndep-plugin-cleanup
BAEL-8833: Cleanup the maven-dependency-plugin usage
2018-09-09 22:43:52 +03:00