Explore a few ways to determine if a number is a power of 2 in Java.
Also find me here:
Baeldung Author
Wynn Teo
I’m Wynn, a Full-stack Developer with a 10+ years of experience. I began my journey in the tech world during my university days in Singapore, and coding has been my passion ever since. I enjoy learning, especially when it comes to all things tech. The journey of gaining knowledge is what keeps me going.
Here's what I've written (so far):
Baeldung on Java
- All
- JPA (10)
- Spring Data (6)
- Persistence (6)
- Java Concurrency (6)
- Web Services (4)
- Java Numbers (4)
- JSON (4)
- Spring Boot (3)
- Networking (3)
- Java List (3)
- Java IO (3)
- Java Array (3)
- Java (3)
- HTTP Client-Side (3)
- Core Java (3)
- Algorithms (3)
- Testing (2)
- Spring (2)
- Java String (2)
- Java Dates (2)
- Jackson (2)
- Data (2)
- Spring Cloud (1)
- Security (1)
- REST (1)
- NoSQL (1)
- Java Map (1)
- Java Collections (1)
- Cloud (1)
Finding the Second Smallest Integer in an Array in Java
Filed under Java Array
Explore a few approaches to finding the second smallest number in an array.
Convert an Optional to an ArrayList in Java
Filed under Java List
Explore various approaches to converting Optional to ArrayList.
Inheritance vs. Composition in JPA
Filed under JPA
Explore the fundamental differences between inheritance and composition in JPA entity modeling.
How to Implement Elvis Operator in Java
Filed under Core Java
Implement the Elvis operator in Java 8 using the Optional class and ternary operator.
Get Nextval From Sequence With Spring JPA
Filed under Spring Data
Explore a few approaches for fetching the next value from a database sequence using Spring Data JPA.
Introduction to Simple Java Mail
Filed under Java
Explore the process of setting up Simple Java Mail and learn how to send emails, including attachments and HTML content, handle exceptions, and more.
Join Two Tables Using jOOQ
Filed under Persistence
Explore various types of joins available in jOOQ.
Querying JSONB Columns Using Spring Data JPA
Filed under JPA, Spring Data
Explore various approaches for querying JSONB columns using Spring Data JPA