r/JavaProgramming • u/scientecheasy • Jan 20 '24
r/JavaProgramming • u/SniperxAMW_ • 13d ago
Java code
import java.util.*;
class Saddle
{
public static void main()
{
Scanner in =new Scanner(System.in);
System.out.println("Enter no. of index between 3 and 10");
int n=in.nextInt();
if(n<3||n>10)
return;//change to true while
int a[][]=new int[n][n];
System.out.println("Enter value in matrix");
int i,j,t,p,y=0,z=0,s=0,d,I;
for(i=0;i<n;i++)
{
for(j=0;j<n;j++)
a[i][j]=in.nextInt();
}
System.out.println("original matrix");
for(i=0;i<n;i++)
{
for(j=0;j<n;j++)
System.out.print(a[i][j]+" ");
System.out.println();
}
for(i=0;i<n;i++)
{
for(j=0;j<n;j++)
{
for(p=0;p<n;p++)
{
if(a[i][j]<=a[i][p])
{
y++;
}
}
for(p=0;p<n;p++)
{
if(a[i][j]>=a[p][j])
{
z++;
}
}
if(y==n&&z==n)
{
System.out.println("Saddle point at index "+i+" "+j);
}
y=0;
z=0;
}
}
j=n;t=0;
System.out.println("original matrix");
for(i=0;i<n;i++)
{
for(j=0;j<n;j++)
System.out.print(a[i][j]+" ");
System.out.println();
}
j=n-1;i=0;
for(I=1;I<=n;I++)
{
t=a[i][j];
while(t>0)//Harshad no
{
d=t%10;
s+=d;
t=t/10;
}
p=(n-1)-j;
if(s!=0)
{
if(a[i][j]%s==0)
a[i][p]=a[i][j];
}
i++;
j--;
s=0;
}
System.out.println("Moidified matrix");
for(i=0;i<n;i++)
{
for(j=0;j<n;j++)
System.out.print(a[i][j]+" ");
System.out.println();
}
}
}
r/JavaProgramming • u/iaashish • Dec 18 '25
Why Senior Engineers Stop Trusting Spring Boot Defaults
reddit.comr/JavaProgramming • u/Old-Pilot-3474 • 27d ago
I decided the owner of a book copy should NOT be the borrower entity — my reasoning, tell me if I'm wrong
I'm rebuilding a legacy Java CLI library app into a peer-to-peer library platform (Java 21 / Spring Boot), where members catalog their own collections and lend copies to each other.
When I added ownership, the fastest path was to reuse my existing Borrower entity as the owner. I didn't. I created a separate LibraryMember entity instead, because in this system they do different jobs:
A member owns copies and lends them (and can be an INDIVIDUAL or an ORGANIZATION)
A borrower is an external patron of a library/org — someone who borrows through a member, not a platform member themselves
Collapsing them would have saved me an entity this week and cost me a tangled model every week after.
Each copy also carries visibility: PRIVATE (default, owner only, can't be borrowed) or PUBLIC (discoverable + borrowable), and my discovery query only returns available PUBLIC copies.
Curious how others have modeled this: in a sharing/lending platform, where did you draw the line between "user of the platform" and "person the user lends to"?
(Code, if useful: github.com/Pekins1/LibraryManagementSystem)
r/JavaProgramming • u/javinpaul • Jul 28 '25
Avoid Using Exceptions for Control Flow — Design Better Error Handling?
r/JavaProgramming • u/Grouchy_Variation927 • Apr 24 '25
Java Training in Chennai - Vytcdc.com
Java Programming Course Introduction
VyTCDC is your gateway to mastering Java programming efficiently and with expertise. Our training program offers a comprehensive journey through the Java online course, combining theoretical insights with practical applications. Suitable for all skill levels, the Java developer certification course features hands-on coding exercises, real-world projects, and interactive sessions led by experienced instructors. You'll gain proficiency in Java fundamentals, object-oriented programming, and advanced techniques essential for today's tech industry. At VyTCDC, we ensure that you not only learn but effectively apply Java, preparing you for a successful career in software development.
Start your journey with us and unlock new opportunities in Java programming.
Why Java Course in VyTCDC ?
Comprehensive Curriculum:
The Java online training in Chennai at VyTCDC offers a meticulously designed curriculum covg both core and advanced Java concepts, ensuring a robust understanding of the language.erin
Experienced Instructors:
Benefit from sessions led by industry experts with years of experience in Java development. These experts provide real-world insights and hands-on training.
Hands-On Projects:
Engage in practical projects that simulate practical situations, enabling you to utilize your knowledge effectively in this Java coding boot camp and build a strong portfolio.
Interactive Learning Environment:
Benefit from an interactive classroom setting that encourages active participation, questions, and discussions.
Career Support:
Take advantage of VyTCDC's strong industry connections and dedicated career support team to help you secure internships and job placements post-course completion.
State-of-the-Art Facilities:
Enjoy learning in a modern, well-equipped environment that fosters creativity and innovation.
Personalized Attention:
Smaller class sizes guarantee individualized attention, ensuring you receive personalized attention and guidance from instructors.
Certification:
Upon completion of the course, you will earn a prestigious Java developer certification, which will strengthen your resume and expand your career prospects.
Flexible Learning Options:
To learn from your schedule, choose from various learning modes, including weekday, weekend, and online classes.
Alumni Network:
Join a vibrant alumni network that offers continuous learning opportunities and professional networking.
Course Key Features offered by VyTCDC-
VyTCDC offers an exceptional Java learning experience with expert instructors and practical applications. The curriculum is regularly updated to align with industry standards, ensuring students acquire relevant skills. Students engage in hands-on projects using advanced tools and technologies, fostering a collaborative learning environment. Our career support services include resume workshops, interview preparation, and networking events, helping students achieve their professional goals. VyTCDC’s combination of academic and practical experience makes it a top choice for Java education.
r/JavaProgramming • u/[deleted] • Jun 29 '25
I made a Game (or tried making one)
hey guys, hi community, goodmoring goodevening and goodnight, I'm here to show you my first creation, I tried to make a game using JavaFX.
Now I know the game is no where near to the completion but just wanted to show you my code implementations so that I could get better at doing stuff in Java. And just be a better code.
now the reason why i made a game because of 2 things actually, I started with java in my college and still trying to be better at it each day. Reason 2 is that I wanted to get better at coding, and handeling Object Oriented programming.
Now this was made during under a week and during my end semesters so, I was kinda sprinting this project and full disclouser I did used ChatGpt, not like copy paste and work it off, I used it like code reffrence on how it would do it and then try to replicate it, and to most extent i understand what i coded and what is happening. I wanted to learn by coding so I tried my best to do implement things, also it was during this project I made my self fimaliar with JavaFX.
So here comes your part an experience developer, I want to get reviewed because I want to see that what i coded is complete garbage or not. Look please go easy on me, I have seen my code and there was bare minimum of code structure and alot of things i could hav handeled diffrently, (eg. Logic for creating a paraent scene and then child scene and then, handeling audio and stuff).
After you guys reviewing I'll make another v.2 of this game and maybe get better at things. Hope you like the idea, please appoligies for seeing through my code if you are 😭.
here's a git repo: https://github.com/Bruh-Ryan/The-Bottle-Flip-Project
r/JavaProgramming • u/theimp1923 • Oct 03 '25
Project Lombok: The Good, The Bad, and The “Why Are We Still Debating This?”
r/JavaProgramming • u/javinpaul • Apr 10 '26
I found Leetcode for System Design, and it's Awesome
r/JavaProgramming • u/[deleted] • Jul 16 '25
Need help
Any one has idea regarding jsql parser 5.1 version.. if you know DM me..
r/JavaProgramming • u/javinpaul • Jul 20 '26
I Read 20+ Coding Interview Books — Here Are My Top 5 Recommendations
r/JavaProgramming • u/Yahobieh • Apr 25 '26
AeroCraft: Less CSS, Faster UI Delivery
Repo: https://github.com/yaghobieh/aerocraft
Package: https://www.npmjs.com/package/@forgedevstack/aerocraft
AeroCraft is a utility and shortcut CSS engine for teams that want the speed of utility classes with better readability and stronger design consistency.
Instead of repeating 8-12 classes for every button, card, and shell, you compose higher-level shortcuts (and component recipes) from your config, then reuse them everywhere.
Why AeroCraft?
Most teams hit the same pain points with CSS utility workflows:
Long class strings are hard to scan in code reviews
Repeated patterns drift across pages
Design tokens live in one place, but UI classes don’t
Migration between projects/frameworks gets noisy
AeroCraft addresses this by generating reusable shortcuts from config, with optional responsive variants and typed design tokens.
Advantages vs Typical Utility-First Setup
1) Shorter, clearer class names
You can collapse repeated utility combinations into one semantic shortcut.
Instead of:
<button class="flex-row-center gap-2 px-5 py-3 rounded-lg font-semibold cursor-pointer w-full transition-fast color-white">
Buy now
</button>You can define recipe classes and use:
<button class="button-core button-touch-48 button-primary-rounded">
Buy now
</button>2) Config-driven design system
Your styles are generated from a single source of truth:
themefor colors, spacing, fonts, radii, shadowscustomShortcutsfor reusable layout/semantic helperscomponentRecipesfor real component-like classes
3) Framework-agnostic output
AeroCraft emits plain CSS. Use it with React, Vue, Angular, Svelte, or vanilla HTML without runtime lock-in.
4) Responsive-ready utilities
Enable responsive: true and get breakpoint variants from your config breakpoints.
5) Better scaling for teams
Teams get consistent naming and less copy-paste CSS noise in JSX/HTML.
Quick Start
npm i /aerocraft postcsspostcss.config.js
import { aerocraftPlugin } from '@forgedevstack/aerocraft/postcss';
import config from './aerocraft.config.js';
export default {
plugins: [aerocraftPlugin(config)],
};src/styles/aerocraft.css
u/aerocraft;src/main.tsx (or equivalent entry)
import './styles/aerocraft.css';Real Config Example
import { defineConfig } from '@forgedevstack/aerocraft';
export default defineConfig({
responsive: true,
theme: {
colors: {
brand: { DEFAULT: '#2563eb', 500: '#3b82f6', 600: '#1d4ed8' },
accent: '#ff8a3c',
},
fontFamily: {
display: ['Plus Jakarta Sans', 'ui-sans-serif', 'system-ui', 'sans-serif'],
},
screens: {
sm: '640px',
md: '768px',
lg: '1024px',
},
},
customShortcuts: {
'background-brand-gradient': {
group: 'background',
css: { 'background-image': 'linear-gradient(90deg,#3b82f6,#6366f1)' },
},
},
componentRecipes: {
'button-core': {
display: 'inline-flex',
'align-items': 'center',
'justify-content': 'center',
gap: '0.5rem',
width: '100%',
'font-weight': '600',
cursor: 'pointer',
transition: 'all 180ms ease',
border: '0',
},
'button-touch-48': {
'min-height': '48px',
padding: '0.75rem 1.25rem',
},
'button-primary-rounded': {
color: '#ffffff',
'border-radius': '0.75rem',
'background-image': 'linear-gradient(90deg,#3b82f6,#6366f1)',
border: '0',
},
},
});Usage Patterns
A) Utility composition
<section class="flex-col gap-4 p-4 rounded-xl">
<h2 class="font-bold">Utility composition</h2>
<p class="color-brand-500">Readable and fast.</p>
</section>B) Component-style composition
<button class="button-core button-touch-48 button-primary-rounded">
Continue
</button>C) Responsive usage
<div class="flex-col md:flex-row gap-3">
<aside class="w-full md:w-[280px]">Filters</aside>
<main class="w-full">Results</main>
</div>When AeroCraft Fits Best
You want utility-class speed without unreadable markup
You need a config-driven bridge between design tokens and classes
You ship across multiple frameworks and want one CSS strategy
You want to define once and reuse patterns (
componentRecipes)
Summary
AeroCraft keeps the productivity of utility CSS, but adds structure where teams need it most: naming, reuse, and config-driven consistency.
If your class strings are getting repetitive, AeroCraft gives you a clean path to shorter markup and scalable styling.
r/JavaProgramming • u/javinpaul • Dec 01 '25
Stop Memorizing Microservices — Master These 19+ Patterns for Any System Design Interview
r/JavaProgramming • u/annnnan • Aug 27 '26
Day 6/30 - 7/50 solved ✅ Today's problem: 186. Reverse Words in a String II (Medium) Building the daily habit and starting to revise Java fundamentals — Strings, Arrays, Chars.
reddit.comr/JavaProgramming • u/RegularSpecialist376 • Jul 22 '25
Learn Java
Looking for someone to learn java from scratch
r/JavaProgramming • u/No-Conversation-7749 • Sep 18 '26
Career Transition: From 2 Years of Java Training Experience to Java Backend Development with AI”
Hi I have 2yrs experience in teaching java to trainees
Now as a part of changing my career I want to work with java Backend with AI
I know core java and Python currently learning Spring boot in detail.
r/JavaProgramming • u/javinpaul • Mar 01 '26
Is ByteByteGo the Best System Design Resource in 2026?
r/JavaProgramming • u/EgeEgey • Apr 29 '26
Nexus Core v1.4 - Automated Config & Global Ranking Engine is here!
Hey everyone!
Just pushed the v1.4 update for Nexus Core, and it’s a big quality-of-life improvement for both the developer (me, lol) and the network performance.
What’s new?
No More Manual Setup: I was tired of typing DB/Redis credentials every time I launched the app. Added a persistent Config system. Now it’s "set and forget"—the app handles auto-login and smart initialization on startup.
Global Ranking Protocols: Implemented a high-performance ranking system. You can now fetch Top-N leaderboards (ASC/DESC) across the entire network asynchronously.
Rank Finder: Added a specialized protocol to calculate a specific key’s position in real-time. No more fetching the whole list just to see one player's rank!
Fluid Data Cleanup: Added a
.remove(key)method to my custom DataContainer. I can now strip MongoDB_ids or sensitive metadata on the fly before broadcasting to Redis.Serialization Fixes: Finally nuked those annoying Jackson
InvalidDefinitionExceptionerrors by refactoring internal maps. Everything is smooth now.
The goal was to make the system more data-driven and less hard-coded. v1.4 feels like a solid milestone for the project’s maturity.
Would love to hear your thoughts on the architecture! 🚀🔥
r/JavaProgramming • u/No-Nature2886 • Aug 01 '26
Debugging Survey in Java
Hii People could some of you do my Survey??
It's a debugging survey in the programming language Java. It's for my bachelor Thesis. It would mean so much too me. You dont have to complete it fully :D
Thank you guys!
Here is the English version:
https://survey.htwsaar.de/783845?lang=en
And here is the German version:
https://survey.htwsaar.de/783845?lang=de
r/JavaProgramming • u/Rich_Bike5279 • Aug 15 '26
Looking for Backend/Java opportunities | 4.5+ YOE | Java, Spring Boot | Fintech/Payments
reddit.comIf anyone knows of Java/Backend openings or can refer me, I’d really appreciate it. I’m happy to DM my resume.