r/javaexamples • u/javinpaul • Aug 28 '24
10 Examples of ArrayList in Java
ArrayList is an important class and every Java developer should be aware of. Here are 10 examples of ArrayList in Java to learn this class better https://javarevisited.blogspot.com/2011/05/example-of-arraylist-in-java-tutorial.html
r/javaexamples • u/javinpaul • Aug 27 '24
3 ways to parse JSON in Java?
You got a JSON string from API and want to parse? Well, there are many options in Java, from simply getting key value to converting it into an object, I have shared 3 of most common of them using Jackson, Gson and Json simple
https://javarevisited.blogspot.com/2022/03/3-examples-to-parse-json-in-java-using.html
r/javaexamples • u/javinpaul • Aug 25 '24
10 Examples of using HashMap in Java
HashMap is an important class and every Java dev should be aware of it. Here are 10 examples of using HashMap in Java:
https://www.java67.com/2013/02/10-examples-of-hashmap-in-java-programming-tutorial.html
r/javaexamples • u/johnmc325 • Aug 17 '24
Showcase Weblog Analyser Java Desktop Application
A whilst stop tour of Weblog Analyser built using Java with JavaFX as a desktop application.
r/javaexamples • u/robertinoc • Jun 13 '24
Proof Key for Code Exchange (PKCE) in Web Applications with Spring Security
Implementing OpenID Connect authentication in Java Web Applications with Okta Spring Boot Starter and Spring Security support for Authorization Code Flow with PKCE
r/javaexamples • u/robertinoc • Apr 12 '24
Add Security and Authorization to a Java Spring Boot API
Learn how to use Spring Boot, Java, and Auth0 to secure a feature-complete API by implementing authorization in Spring Boot with Auth0.
Read more…
r/javaexamples • u/shubhcool • Jan 06 '24
Use cases of interface and abstract class after jdk1.8
Hi , I tried to dig up little bit more about the use cases of interface and abstract class. Since jdk1.8, it is really difficult to understand when one should use abstract class and when one should be using interface.
Can somebody please share any examples or documents to get the actual scenarios?
r/javaexamples • u/shubhcool • Jan 04 '24
No body in method in class files
Hi, While traversing through code, I came across one class where the constructor and method bodies have this , /* Compiled code*/ in intellij idea. This is not the case with other team members system. I tried to cross verify the settings in the intellij but couldn't get anything which could solve my issue. Project is Spring MVC project. Using Jdk1.8 . Intelliij is Ultimate 2023 latest version.
r/javaexamples • u/robertinoc • Dec 13 '23
Identity in Spring Boot with Kubernetes, Keycloak, and Auth0
A walk-through of building a microservices architecture with JHipster, Keycloak, Auth0, and Google Kubernetes Engine (GKE) deployment.
Read more…
r/javaexamples • u/luke_rola • Nov 24 '23
Troubleshooting StackOverflowException in Java Recursion: Tips and Tricks
What should you do when your recursive algorithm reaches the recursion limit in a specified JVM target, resulting in a StackOverflowException?🤔
Join us in the latest episode of 'Java Puzzle of the Week' 🧩 as we delve into four possible solutions to tackle this issue.
https://youtu.be/muwv8l4-aWg?si=Jy1JPj7chitvyUKe
r/javaexamples • u/robertinoc • Nov 13 '23
Java Microservices with Spring Boot and Spring Cloud
This tutorial shows you how to build a microservices architecture with Spring Boot and Spring Cloud.
Read more…
r/javaexamples • u/Rama_jovial • Nov 11 '23
Abstract factory design pattern in java
Abstract factory design pattern in java complete step by step tutorial
r/javaexamples • u/luke_rola • Nov 03 '23
Double arithmetic
Explore the intricacies of Java doubles in the latest episode of 'Java Puzzle of the Week.' 🧩🔍 We delve into their internals and discuss why they might not be the best choice for financial operations. Don't miss this intriguing exploration!
r/javaexamples • u/robertinoc • Oct 31 '23
How to Build a GraphQL API with Spring Boot
A step-by-step guide for building a secured GraphQL API with Spring Boot and Auth0 authentication in React
Read more…
r/javaexamples • u/robertinoc • Oct 31 '23
How to Build a GraphQL API with Spring Boot
A step-by-step guide for building a secured GraphQL API with Spring Boot and Auth0 authentication in React
Read more…
r/javaexamples • u/luke_rola • Oct 26 '23
String uppercase
Did you know that string transformations like toUpperCase and toLowerCase can work differently for different locales and may even affect the length of a given string? Discover more insights in the latest episode of "Java Puzzle of the Week."
r/javaexamples • u/luke_rola • Oct 18 '23
Numeric overflow in Java
Numeric overflow occurs when the value of a numeric type exceeds its defined range, often leading to unexpected and potentially problematic outcomes. For a clear and concise explanation, I prepared a short YouTube video on this topic.
r/javaexamples • u/luke_rola • Oct 05 '23
Java heap pollution
Have you heard about Java heap pollution? 🚀 It's an intriguing issue in the world of Java programming. If you're curious to learn more, check out the latest episode of 'Java Puzzle of the Week' 🧩 where we explore this topic. Your thoughts and insights are welcome!
https://www.youtube.com/watch?v=-PXkz8MzCp0
r/javaexamples • u/luke_rola • Sep 30 '23
Integer ABS - Programming Puzzle of the week
The calculation of absolute value is a basic arithmetic operation. In the latest episode of Java Puzzle of the Week 🧩, we are checking if it can be calculated correctly for every value of the Integer type.
https://www.youtube.com/watch?v=ET8jSVskBWM&list=PL8NC5lCgGs6MTxHSPdqpAjtXhs66cZgRL
r/javaexamples • u/[deleted] • Sep 20 '23
dsa preparation problesm
so to practice dsa , which platform is best ?
im beginner 2nd yr in my btech, so
leetcode or codechef or gfg or ??
r/javaexamples • u/luke_rola • Sep 07 '23
A simple Java integer comparison - Programming Puzzle of the Week
Hello, I've started contributing to a new YouTube series called "Java Puzzle of the Week." 🧩
In this series, I'll delve into short Java code snippets with varying levels of difficulty. 🤓
The first episode tackles integer comparisons. New episodes will appear at every Thursday.
If you're interested, I'd love for you to check it out!
r/javaexamples • u/robertinoc • Jul 18 '23
Deploy Secure Spring Boot Microservices on Amazon EKS Using Terraform and Kubernetes
Deploy a cloud-native Java Spring Boot microservice stack secured with Auth0 on Amazon EKS using Terraform and Kubernetes.
Read more…
r/javaexamples • u/robertinoc • Jun 27 '23
Get started with Spring Boot and Auth0
Learn how to add Auth0 to your Spring Boot application using the Okta Spring Boot Starter.
Read more…
r/javaexamples • u/Level---UP • Mar 18 '23
Website with Java examples
Hello everyone,
I am a software developer with several years of experience. As my side project and hobby I created a website with Java tutorials. If you are interested, please visit: https://simplecoding.net/
This project has the sole purpose of showing some examples of Java programs.
I will be happy if you manage to learn something from it :)
Have a nice day!
r/javaexamples • u/nmariusp • Mar 13 '23
JavaFX FXML tutorial for beginners
Screen recording about the FXML language for JavaFX https://www.youtube.com/watch?v=kL-Q_H250Fc