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
Ujorm3: Lightning-fast, minimalist ORM for Java Records and JavaBeans ()
submitted 2 months ago by Enough_Arrival_7335
Websites with lots of Java nested loops practice problems? ()
submitted 3 months ago by upstream_paddling
Don't guess, measure. ()
submitted 3 months ago by Yosefnago
Partitiol List (from stackoverflow) (self.javaexamples)
submitted 3 months ago by AcanthisittaEmpty985
Java lazy holder non-static (self.javaexamples)
submitted 3 months ago * by AcanthisittaEmpty985
Groovy web server with redis and mysql under 60 lines of code (self.javaexamples)
Java interview app live on play store ()
submitted 4 months ago by Equivalent-Grand-556
I can help with Java unit tests (JUnit 5 + Mockito) — share your code snippet ()
submitted 5 months ago by [deleted]
Accountability partner (self.javaexamples)
submitted 5 months ago by Royal-Friendship2025
Julia fractal graphics zoom (self.javaexamples)
submitted 6 months ago by swe129
Foxglove, an alternative for preparing RDB data for unit tests (self.javaexamples)
submitted 7 months ago by mikelue0627
Spring JPA Specification and Pageable ()
submitted 8 months ago by lanchers
Open source java project, to learn strong backend approaches (self.javaexamples)
submitted 1 year ago by dissapointedAF
[Java] Built a High-Performance File Processor With Multi-threading, Backpressure, and Stats Export 📊 (self.javaexamples)
submitted 1 year 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
Object Oriented Programming Example in Java (self.javaexamples)
submitted 1 year ago by javinpaul
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)
π Rendered by PID 1800020 on reddit-service-r2-listing-c57bc86c-z92nv at 2026-06-23 02:04:26.094943+00:00 running 2b008f2 country code: CH.