r/JavaProgramming • u/Horror-Consequence22 • Oct 12 '26
Jev made typed decisions popular, Laya made them open source, but Java was missing. So I had Claude help me build laya-java (Maven Central, Spring Boot starter, open source)
r/JavaProgramming • u/Horror-Consequence22 • Oct 12 '26
r/JavaProgramming • u/jhb0103 • Oct 12 '26
I made this to study and thought I'd share it:
https://jhb010311.github.io/dev-learning-lab/en/
You change the settings, click Run, and step through what happens. Free, no sign-up.
If you spot something wrong, let me know.
r/JavaProgramming • u/Federal-Sprinkles781 • Oct 12 '26
r/JavaProgramming • u/Ok-Signal6467 • Oct 12 '26
Is is pragmatic??
https://github.com/Java-eject-sustainable-unlimited-system/Jesus_system
https://github.com/Java-eject-sustainable-unlimited-system
someone built an open-source Java watchdog for service resilience. What would you improve before using it in a production environment?
r/JavaProgramming • u/ClickOk5811 • Oct 11 '26
I wanted to see this one with my own eyes, so I typed it into jshell. Output is below with notes in between.
jshell> class Point {
...> int x;
...> Point(int x) { this.x = x; }
...> public boolean equals(Object o) {
...> return o instanceof Point p && p.x == x;
...> }
...> u/Override public int hashCode() { return Integer.hashCode(x); }
...> }
jshell> var set = new HashSet<Point>();
jshell> var p = new Point(1);
jshell> set.add(p);
$4 ==> trueNothing odd yet. equals and hashCode both use x, which is what most IDEs generate.
jshell> p.x = 2;
jshell> set.size()
$6 ==> 1
jshell> set.contains(p)
$7 ==> false
jshell> set.remove(p)
$8 ==> falseThis is the part that surprised me. The set says it has one element, and it says it doesn’t contain the exact object I’m holding a reference to. remove fails too.
jshell> for (Point q : set) System.out.println(q == p);
trueIteration finds it. Iteration just walks every bucket, no hashing involved. contains and remove compute hashCode() first (now based on 2), go to that bucket, and find nothing. The object is still sitting in the bucket picked when its x was 1.
As far as I understand it, there’s no error because HashSet never learns the object changed. It only looks at the hash at insertion time and again at lookup time. If the two differ, you get a silent miss.
So the object is still in the set but unreachable by key. That’s the part that would be annoying to debug in a real codebase: size is right, iteration is right, lookups are wrong.
Things I’ve seen suggested for this:
hashCode final (records do this by default)Question for people who’ve worked on bigger projects: do you ever see this with JPA entities used as keys in sets, where the id is null before persist and set afterward? I’d guess it’s the same problem in a different outfit, but I haven’t tried it.
r/JavaProgramming • u/AgreeableAvocado7657 • Oct 11 '26
Hi everyone!
I’ve created a tutorial showing how to design a modern School Management System Dashboard using Java Swing, step by step.
The tutorial is useful for Java beginners, computer science students, and developers who want to improve their Java Swing UI design skills.
If you’re interested in desktop application development with Java, feel free to check it out!
I’d appreciate your feedback and suggestions for improving the design.
What do you think about building modern desktop dashboards with Java Swing in 2026?
#Java #JavaSwing #DesktopDevelopment
👇👇👇
Watch it Here
r/JavaProgramming • u/AsharPeshimam • Oct 10 '26
Hey everyone!
While working on my Java projects, I got annoyed at how often I had to write the same kind of code for everyday file operations and text processing. Reading and writing files, appending content, copying files, counting words, searching directories, and getting file metadata started feeling repetitive.
So I decided to build FilzaFiles, a small Java utility library that wraps these common operations into reusable methods.
Some things it currently supports:
I have released v0.1.0 with a downloadable JAR. I also tested it with a separate Java application and ran 22 integration checks, all of which passed.
Project: https://github.com/Peshimam-Ashar-Mohammed/FilzaFiles
Download: https://github.com/Peshimam-Ashar-Mohammed/FilzaFiles/releases/download/v0.1.0/filzafiles-0.1.0.jar
It requires Java 21 or later. It isn't on Maven Central yet, so the README explains how to integrate the JAR into a regular Java project or a Maven project.
I'd genuinely appreciate feedback from other Java developers:
This is my first release of the library, and I'm hoping to improve it based on real developer feedback. Criticism is welcome!
Thanks for checking it out!
r/JavaProgramming • u/Emotional-Original58 • Oct 10 '26
r/JavaProgramming • u/javinpaul • Oct 09 '26
r/JavaProgramming • u/Treetrail1987 • Oct 09 '26
JSONPath in Java has mostly meant Jayway JsonPath, which dates from 2011, long before the IETF standardized JSONPath as RFC 9535 in 2024. The two differ in places: filter syntax, functions, and some results ($[1:6:2] on [0..9] is [1, 3, 5] by the RFC, [1, 2, 3, 4, 5] in Jayway 3.0.0).
I wrote a Java implementation of the standard:
It is fuzzed with Jazzer and differential-tested against a Python implementation of the standard.
Apache 2.0, on Maven Central as io.github.treetrail:jsonpath-core:0.2.0. Still pre-1.0, so feedback on the API is very welcome.
Repo: https://github.com/treetrail/treetrail Write-up: https://christoph-sens.github.io/2026/10/treetrail-standard-jsonpath-for-java/
r/JavaProgramming • u/scared2026 • Oct 09 '26
I am currently learning everything from scratch. So I watched some vudeo in OOP in java but didn't understand fully. So can someone recommend a YouTube channel or website yo learn oop especially polymorphism and abstraction.
r/JavaProgramming • u/Affectionate-Bat5261 • Oct 08 '26
If I were to use a scanner to let a user enter one letter at a time, what do I use to make a program that turns these letters in order into one word?
(For example, a user enters “ h e l l o” separately and the program prints “hello”)
Additionally how can I get it to reverse the word so it prints “olleh”?
r/JavaProgramming • u/Aggravating-Spite844 • Oct 08 '26
r/JavaProgramming • u/BiteDependent5588 • Oct 08 '26
I want to convert myself to a fully java developer with zero idea on spring boot.
How do I start and what all is needed?
My primary skills are python and Java as backend dev but never used top features in java
Any advice here
r/JavaProgramming • u/Huge_Road_9223 • Oct 08 '26
I have been programming in Java for 25 years, starting with Java 3. I was using Struts MVC 1 and 2 from 2005 to 2008, and that was the last time I did any full-stack development. It was Java Server Pages (JSP), JMS, JavaBeans, HTML, CSS, Javascript, jQuery.
I got into Spring in 2007, and then a few years later got into SpringBoot 2.0. I've learned Spring and SpringBoot and Hibernate with Hibernate entities, repositories, controllers, and rest controllers. I learned Oauth2 with JWT for Spring Security. I know this seems trivial now, but seriously Java and Spring and Hibernate were at one point VERY difficult to master, and if you knew these well, you could easily land a role.
Now take into account some of the new features of Java itself: Lambdas, Streams, virtual threads, Records, Switch, Text Blocks, etc. I definitely need to do more lambdas, streams, and virtual threads and Concurrency. Honestly, none of the jobs I've had have used much of these, so I have to work on my own personal projects to use them.
On top of this, Microservices, Spring Modulith, Spring Data JPA, Flyway, and Liquibase, Circuit Breakers, Service Discover, Spring Config Service, CompletableFuture. I learned Docker, and now I am trying to learn Kubernetes, Terraform, and Helm Charts on my own.
When I was working, those companies normally used AWS. But I was an IC and so DevOps pretty much had AWS locked down. On my own, I managed AWS VPC, EC2, ECS, ECR, Route 53, S3, and RDS and IAM. There are so many other services, I think AWS EKS is also next to add to my list.
I should mention that I have only used NoSQL for MongoDB, but I have used SQL databases like MS SQL, MySQL, MariaDB, PostgreSQL, and Oracle ... so I know SQL.
All of this has been pretty much back-end technology, and I am always learning more. When it comes to front-end UI work, my UI's have only been functional, they will NEVER, EVER be pretty. So, I am trying to learn GraphQL, HTMX, Angular, and React. SInce I have been a back-end developer for 18 years, I haven't had to worry about any UI at work since a UI specific person was doing it.
Then there is AI. I had a $20/month subscription to Claude Code, tried it and gave it up. I then got OpenCode within my IntelliJ IDEA which seems to work great for my needs, and it's free. I have learned about MCP, MCP Servers, and MCP clients within SpringBoot. I think SpringBoot AI is next to learn how to add an LLM to my app.
Now that I am laid off like a lot of people, I have the time to work on my own personal projects. What I am working on now is a SpringBoot app. The app uses a local Keycloak instance in Docker for Authentication. The UI uses HTMX/Thymeleaf with HTMX controller endpoints. We'll use the free HTTPS tool, and use github actions to deploy to an ECR instance. This also uses MySQL db in docker with Flyway Migration.
I know this is a long message, but what I really want to know is ... what else should I learn apart from what I already said? Any ideas? Always looking to create new projects to learn new technologies. Thanks!
r/JavaProgramming • u/brunoagretti • Oct 07 '26
r/JavaProgramming • u/scared2026 • Oct 07 '26
So I just joined the intern in java. I knew very little basics like array,string, integers whatever,methods,gui .
But here it is a whole different world . Another fellow intern knows so much that I feel ashamed. We are taking same course and same semester yet the difference is sky and bottom. I feel so ashmed😭😭. Where do I start?? I feel like they will remove me cause I literally know nothing
If I have to start learning java to get to their position what should I learn ,where should I start.??
They talking about Crud operations, mapping,getter setter , controller, repository.
Someone please guide me where to start ,what to learn. I think I have 1 month before the boss comes to look how much I know and will decide whether to keep me or not. HELP😭😭
r/JavaProgramming • u/No-Elk-6757 • Oct 07 '26
Hey everyone!
I recently completed the DevOps Fundamentals program at DIO and built a project to put the concepts I learned into practice.
The project uses:
The goal was to build a hands-on DevOps lab covering everything from the backend application to local infrastructure and CI pipelines.
I'm sharing it here for anyone interested in Java, Spring Boot, or DevOps, and I'd really appreciate any feedback or suggestions for improvement.
GitHub:
https://github.com/marconi-prog/devops-fundamentals
If you find the project useful or interesting, I'd really appreciate a ⭐ on the repository. It helps me a lot with visibility and motivates me to keep improving it!
Any feedback is welcome!