7904c3ee04
* Code for Dependency Injection Article. * Added Java based configuration. Downloaded formatter.xml and reformatted all changed files. Manually changed tab into 4 spaces in XML configuration files. * BAEL-434 - Spring Roo project files generated by Spring Roo. No formatting applied. Added POM, java and resources folders. * Moved project from roo to spring-roo folder. * BAEL-838 Initial code showing how to remove last char - helper class and tests. * BAEL-838 Corrected Helper class and associated empty string test case. Added StringUtils.substing tests. * BAEL-838 Refromatted code using formatter.xml. Added Assert.assertEquals import. Renamed test to follow convention. Reordered tests. * BAEL-838 - Added regex method and updated tests. * BAEL-838 Added new line examples. * BAEL-838 Renamed RemoveLastChar class to StringHelper and added Java8 examples. Refactord code. * BAEL-838 Changed method names * BAEL-838 Tiny change to keep code consistant. Return null or empty. * BAEL-838 Removed unresolved conflict. * BAEL-821 New class that shows different rounding techniques. Updated POM. * BAEL-821 - Added unit test for different round methods. * BAEL-821 Changed test method name to follow the convention * BAEL-821 Added more test and updated round methods. * BAEL-837 - initial commit. A few examples of adding doubles. * BAEL-837 - Couple of smaller changes * BAEL-837 - Added jUnit test. * BAEL-579 Updated Spring Cloud Version I was getting error: java.lang.NoSuchMethodError: org.springframework.cloud.config.environment.Environment After version update, all is okay. * BAEL-579 Added actuator to Cloud Config Client. * BAEL-579 Enabled cloud bus and updated dependencies. * BAEL-579 Config Client using Spring Cloud Bus. * BAEL-579 Recreated Basic Config Server. * BAEL-579 Recreated Config Client. * BAEL-579 Removed test Git URL. * BAEL-579 Added Actuator to Config Client * BAEL-579 Added Spring Cloud Bus to Client. * BAEL-579 Server changes for Spring Cloud Bus Added dependencies and removed git.clone-on-start as this was causing server to throw errors after git properties change. * BAEL-579 Removed Git URL. * Revert "BAEL-579 Updated Spring Cloud Version" This reverts commit f775bf91e53a1ecfb9b70596688d7c8202bf495f. * Revert "BAEL-579 Config Client using Spring Cloud Bus." This reverts commit 1d96bc5761994a33af9a7a9aa5ab68604a5b44dc. * Revert "BAEL-579 Enabled cloud bus and updated dependencies." This reverts commit 7845da922d89d53506dd0fff387ea13694c50bc1. * Revert "BAEL-579 Added actuator to Cloud Config Client." This reverts commit 076657a26a57e0aa676989a4d97966a3b9d53e1c. * BAEL-579 Added missing dependency versions. * BAEL-579 Added missing dependency versions. * Updated gitignore * BAEL-1065 Simple performance check StringBuffer vs StringBuilder. * BAEL-1065 Added JMH benchmarks
=========
Core Java Cookbooks and Examples
Relevant Articles:
- Immutable ArrayList in Java
- Java - Reading a Large File Efficiently
- Java InputStream to String
- Converting between an Array and a List in Java
- Converting between an Array and a Set in Java
- Converting between a List and a Set in Java
- Convert a Map to an Array, List or Set in Java
- Java – Write to File
- Java - Convert File to InputStream
- Java – Random Long, Float, Integer and Double
- Java – Generate Random String
- Java Scanner
- Java Timer
- Java – Byte Array to Writer
- How to Run a Shell Command in Java
- MD5 Hashing in Java
- Guide to the Java ArrayList
- Guide to Java Reflection
- A Guide to Java Sockets
- Convert char to String in Java
- Random List Element
- Convert String to int or Integer in Java
- Java – Directory Size
- Java – Try with Resources
- Guide to the Fork/Join Framework in Java
- How to Print Screen in Java
- How to Convert String to different data types in Java
- Introduction to Java Generics
- Generate equals() and hashCode() with Eclipse
- A Guide To Java Regular Expressions API
- Sorting in Java
- Getting Started with Java Properties
- Grep in Java
- Java - Combine Multiple Collections
- Simulated Annealing for Travelling Salesman Problem
- Slope One Algorithm: Collaborative Filtering Recommendation Systems
- Differences Between the Java WatchService API and the Apache Commons IO Monitor Library
- Pattern Search with Grep in Java
- URL Encoding and Decoding in Java
- Calculate the Size of a File in Java
- The Basics of Java Generics
- The Traveling Salesman Problem in Java
- How to Create an Executable JAR with Maven
- How to Design a Genetic Algorithm in Java
- Guide to WeakHashMap in Java
- Spring Security – Cache Control Headers
- Basic Introduction to JMX
- AWS Lambda With Java
- Introduction to Nashorn
- Guide to the Guava BiMap
- Iterable to Stream in Java
- Chained Exceptions in Java
- The Java HashMap Under the Hood
- A Guide to LinkedHashMap in Java
- A Guide to TreeMap in Java
- A Quick JUnit vs TestNG Comparison
- Java Primitive Conversions
- Java Money and the Currency API
- Removing all nulls from a List in Java
- Removing all duplicates from a List in Java
- Using Math.pow in Java
- Converting Strings to Enums in Java
- Flattening Nested Collections in Java
- Quick Guide to the Java StringTokenizer
- JVM Log Forging
- Guide to sun.misc.Unsafe
- HashSet and TreeSet Comparison
- How to Perform a Simple HTTP Request in Java
- Call Methods at Runtime Using Java Reflection
- Guide to UUID in JAVA
- Comparing getPath(), getAbsolutePath(), and getCanonicalPath() in Java
- How to Add a Single Element to a Stream
- Iterating Over Enum Values in Java
- Kotlin Java Interoperability
- Using Java MappedByteBuffer
- How to Round a Number to N Decimal Places in Java
- Changing Annotation Parameters At Runtime
- How to Find all Getters Returning Null
- Converting String to Stream of chars
- Changing the Order in a Sum Operation Can Produce Different Results?
- How to Get a Name of a Method Being Executed?
- Iterate over a Map in Java
- Dynamic Proxies in Java
- How to Copy an Array in Java
- Introduction to JDBC
- Period and Duration in Java
- Converting a Stack Trace to a String in Java
- Count Occurrences of a Char in a String
- Java Double Brace Initialization
- The StackOverflowError in Java
- Split a String in Java
- Introduction to Java Serialization
- How to Remove the Last Character of a String?
- ClassNotFoundException vs NoClassDefFoundError
- Guide to UUID in Java
- Guide to Escaping Characters in Java RegExps
- Period and Duration in Java