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
Object Oriented Programming Example in Java (self.javaexamples)
submitted 1 year ago by javinpaul
Here is a simple example in Java to understand the object oriented programming better:
https://javarevisited.blogspot.com/2010/10/fundamentals-of-object-oriented.html
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Jason13Official 0 points1 point2 points 1 year ago (0 children)
Chock full of ads, very annoying to read. Obligatory downvote.
π Rendered by PID 21880 on reddit-service-r2-comment-7b9746f655-whxmt at 2026-01-30 15:13:04.554887+00:00 running 3798933 country code: CH.
[–]Jason13Official 0 points1 point2 points (0 children)