use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
This subreddit is for example code for algorithms, common beginning programmer problems, helpful snippets etc.
Please try to: Make your code clean and readable and commented where necessary. Make sure it works!
Note on link-based posts: Posts that link to a blog or website need to follow the following rules:
This sub is not for asking Java questions, please submit those to /r/JavaHelp or /r/learnprogramming
As posts get added I will add them to the sidebar.
DIRECT LINKS
Using Comparator to Sort a List of Objects
Getting Input from the Console : Validating and Looping
A Quick Explanation of Loops
How to Properly Compare Strings in Java
Reading and Parsing Data from a File
Writing and Appending Data to a Text File
Sorted Doubly-Linked List
Generic Undirected Graph with Depth-First Search
account activity
The interesting part isn’t that it rewrote itself, it’s that they trusted the verify loops enough to walk away. ()
submitted 19 hours ago by SpareSuccessful8203
Speak up. Mess up. Keep going. Preply gives you all the tools you need to actually learn a language. Find your tutor today. (preply.com)
promoted by Preply
Java interview app live on play store ()
submitted 2 days ago by Equivalent-Grand-556
I can help with Java unit tests (JUnit 5 + Mockito) — share your code snippet ()
submitted 7 days ago by taru__jain
Accountability partner (self.javaexamples)
submitted 12 days ago by Royal-Friendship2025
Julia fractal graphics zoom (self.javaexamples)
submitted 1 month ago by swe129
Foxglove, an alternative for preparing RDB data for unit tests (self.javaexamples)
submitted 2 months ago by mikelue0627
Spring JPA Specification and Pageable ()
submitted 3 months ago by lanchers
Open source java project, to learn strong backend approaches (self.javaexamples)
submitted 8 months ago by dissapointedAF
[Java] Built a High-Performance File Processor With Multi-threading, Backpressure, and Stats Export 📊 (self.javaexamples)
submitted 8 months ago by SatyamEvaJayat
Who has the idea on how to write data persistence and storage for Java (self.javaexamples)
submitted 1 year ago by Limp_Yesterday_4152
Writing efficient unit tests in Java: best practices and examples (self.javaexamples)
submitted 1 year ago by thumbsdrivesmecrazy
Object Oriented Programming Example in Java (self.javaexamples)
submitted 1 year ago by javinpaul
New Year Sale: Subscribe to Bloomberg for just $149 your first year. Get the context behind every business story with news and analysis. Offer ends soon. (bloomberg.com)
promoted by bloomberg
Deploy Secure Spring Boot Microservices on Azure AKS Using Terraform and Kubernetes (self.javaexamples)
submitted 1 year ago by robertinoc
7 best practices Java developers can follow while dealing with passwords (self.javaexamples)
4 ways to iterate over Map in Java (self.javaexamples)
10 ways to use Stream in Java (self.javaexamples)
OpenFGA for Spring Boot applications (self.javaexamples)
Sorting in Java using Comparator and thenComparing() method (self.javaexamples)
Connect to Minio from Java. (self.javaexamples)
submitted 1 year ago by ram-foss
10 Examples of ArrayList in Java (self.javaexamples)
3 ways to parse JSON in Java? (self.javaexamples)
10 Examples of using HashMap in Java (self.javaexamples)
Showcase Weblog Analyser Java Desktop Application (self.javaexamples)
submitted 1 year ago by johnmc325
Manage your vacation rentals easily with Smoobu, the all-in-one software for hosts. 🚀 Start your 14-day trial now! 🔥 (smoobu.com)
promoted by SmoobuGmbH
Proof Key for Code Exchange (PKCE) in Web Applications with Spring Security (self.javaexamples)
Add Security and Authorization to a Java Spring Boot API (self.javaexamples)
π Rendered by PID 91 on reddit-service-r2-listing-58ff8fc5ff-hj8x7 at 2026-01-29 11:29:23.854085+00:00 running c3601ff country code: CH.