Learn how to check if a string contains a number in Java.
Search Results for: apache commons
Capitalize the First Letter of Each Word in a String
Learn how to capitalize the initial character of each word in a Java string.
How to Convert an Object to String
Explore various techniques for converting an object to its string representation in Java.
How to Write Hashmap to CSV File
Learn how to write HashMap to a CSV file.
Convert a String with Unicode Encoding to a String of Letters
A quick and practical guide to converting a String with Unicode encoding to a String of letters.
How to Get Index of an Item in Java Set
Explore how to find the index of an element in a Set.
Test Main Method with JUnit
Learn how to test the main method in Java with Junit.
Closing Java IO Streams
Learn why it’s necessary to close IO streams and how to do it.
Converting an int[] to HashSet in Java
Learn multiple approaches to converting an int[] to a HashSet in Java.
Escape HTML Symbols in Java
A quick and practical guide to escaping HTML symbols in Java.
Getting Yesterday’s Date in Java
Learn how to easily get yesterday’s date in Java.
How to Deep Copy an ArrayList in Java
A quick and practical guide to deep-copying an ArrayList in Java.
Check if a String Contains Non-Alphanumeric Characters
A quick and practical guide to checking if a String contains non-alphanumeric characters.
Convert Java Array to Iterable
Explore several approaches to convert a Java array to an Iterable collection.
Hex Representation of a SHA-1 Digest of a String in Java
Learn three different ways to generate the hex representation of a SHA-1 digest of a string in Java.
Asserting Equality on Two Classes Without an equals() Method
Learn a few ways of testing for the equality of two objects without the equals() method.
Check if a String Is All Uppercase or Lowercase in Java
Explore different approaches to check if a string is all uppercase or lowercase in Java.
Combining Two or More Byte Arrays
Explore multiple ways to concatenate two or more byte arrays.
Check if a List Contains an Element From Another List in Java
Learn how to check if a list contains elements from another list in Java.
Convert String to Int Using Encapsulation
Learn different ways on how to convert String to int via encapsulation.