Learn when to use setter methods or constructors for setting the value of a variable in Java.
Baeldung Author
Diego Martin
Here's what I've written (so far):
Baeldung on Java
- All
- Java Dates (4)
- Java String (3)
- Java Numbers (3)
- Jackson (3)
- Networking (2)
- Java IO (2)
- Java Array (2)
- Core Java (2)
- Testing (1)
- Java Web (1)
- Java Streams (1)
- Java List (1)
- Java Collections (1)
- JSON (1)
Normalizing the EOL Character in Java
Filed under Java String
Explore different Java methods for normalizing EOL characters.
Check if a Given Time Lies Between Two Times Regardless of Date
Filed under Java Dates
Explore ways to determine if a particular time lies within the two times without considering dates.
Adding Elements to a Collection During Iteration
Filed under Java Collections
Explore several methods, including ListIterator (enhanced for looping with a copy) and Java 8 Streams, which allow you to add elements to a list during iteration in Java.
Obtaining the Last Path Segment of a URI in Java
Filed under Java String, Networking
Explore multiple Java methods, including the URI class, Path class, FilenameUtils, and regular expressions, providing diverse approaches to extract the last path segment from a URI.
Create JavaType From Class with Jackson
Filed under Jackson
Learn how to build instances of JavaType from Class objects with the help of the Jackson library.
Check if String is Base64 Encoded
Filed under Java String
Explore several methods of verifying if a string is Base64 encoded..
Normalize a URL in Java
Filed under Networking
Explore different techniques to normalize a URL in Java.
Calculating the Power of Any Number in Java Without Using Math pow() Method
Filed under Java Numbers
Explore various approaches to calculating the powеr of a numbеr in Java without rеlying on the Math.pow() mеthod.
Baeldung on Computer Science
- All
- Machine Learning (1)
How to Calculate the VC-Dimension of a Classifier?
Filed under Machine Learning
Explore the VC dimеnsion that sеrvеs as a fundamеntal concеpt in undеrstanding thе complеxity of lеarning algorithms and thеir gеnеralization capabilities.