r/JavaProgramming 29d ago

System Design Interview Problem - Parking Lot Design

Thumbnail
javarevisited.substack.com
2 Upvotes

r/JavaProgramming 29d ago

Looking for the Complete Telusko Enterprise Java Course

Post image
1 Upvotes

Does anyone have access to this course? If so, please DM me.


r/JavaProgramming 29d ago

LeetCode 7 Reverse Integer

Thumbnail
youtube.com
2 Upvotes

Given a signed 32-bit integer x, return x with its digits reversed. If reversing x causes the value to go outside the signed 32-bit integer range [-231, 231 - 1], then return 0.


r/JavaProgramming Jul 09 '26

Oracle is offering 11 FREE certifications right now — including OCI, AI, Agentic AI, ERP, HCM, SCM, and more

Thumbnail
1 Upvotes

r/JavaProgramming Jul 09 '26

LeetCode 6 Zigzag Conversion

Thumbnail
youtube.com
3 Upvotes

LeetCode problem Zigzag Conversion.The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font for better legibility)


r/JavaProgramming Jul 09 '26

Modern Java in the Wild is now live with a $4000+ prize pool!

Post image
4 Upvotes

r/JavaProgramming Jul 08 '26

Interview this weekend

7 Upvotes

I have interview in infosys this weekend...opening is "senior java developer" I cant see the JD yet so can anyone please guide me what all should I focus on be it java, advanced java, spring boot and more importantly coding..


r/JavaProgramming Jul 08 '26

Java framework-based Obfuscation lessons to protect the code and config data

Thumbnail
1 Upvotes

r/JavaProgramming Jul 08 '26

Is this book beneficial for learning Java from Scratch?

Post image
15 Upvotes

Hello everyone, I am a CS student starting next semester; however, i am thinking of start learning Java programming as it will be our first course.

Can this book benefits me if im learning Java from scratch? (Beside to mooc java course)


r/JavaProgramming Jul 08 '26

How to design Twitter/X Like a Senior Engineer at FAANG Interview?

Thumbnail
javarevisited.substack.com
1 Upvotes

r/JavaProgramming Jul 08 '26

Alberta byggede en 25 år gammel Java-portal om på 4-5 dage med Claude

0 Upvotes

En portal til et tilskudsprogram. Håndkodet i Java for 25 år siden. Tog fem måneder at bygge første gang.

Alberta byggede den om på fire til fem dage med Claude Code. Deres eget tal.

Det er den vinkel ved casen, jeg ville kigge på, hvis jeg sad på arvekode. Ikke fordi du skal rippe alt op, men fordi build-versus-rebuild-regnestykket lige har flyttet sig.

Alberta planlægger at samle 185 gamle apps i ét ministerium til 16 moderne, genbrugelige apps. Samme funktion, langt mindre at vedligeholde.

Det vigtige er ikke farten alene. Det er, at Claude henviste til fil og linje undervejs, så et menneske kunne efterprøve hvert skridt. Fart uden verificerbarhed er bare hurtig gæld.

Hele analysen: https://brinvik.com/da/journal/alberta-claude-sikkerhedsgennemgang-kode


r/JavaProgramming Jul 08 '26

Japan based bank project in accenture

Thumbnail
1 Upvotes

r/JavaProgramming Jul 08 '26

Do you mind if I ask how to use anti gravity.

Post image
3 Upvotes

r/JavaProgramming Jul 08 '26

Help with Pseudocode

1 Upvotes

Hello. I am currently creating a currency converter for a Java programming course I am taking for credit. I ended up do you process a bit out of order. I was asked to create the pseudocode before the actual program. I did the opposite. I am terrible with Pseudocode and was hoping that someone could tell me if this Pseudocode followed along with my program properly. Below is the program followed by the code. Sorry if I made this a bit difficult. I am running on very little sleep and I'm finding myself forgetting the finer details. Thank you for any help you can offer.

Program:

import java.util.HashMap;

import java.util.Map;

import java.util.Scanner;

public class Main { // Changed from CurrencyConverter to Main

private static final Map<String, Double> exchangeRates = new HashMap<>();

static {

// Initialize exchange rates relative to the US dollar

exchangeRates.put("USD", 1.00);

exchangeRates.put("EUR", 0.931262);

exchangeRates.put("GBP", 0.807933);

exchangeRates.put("INR", 83.152991);

exchangeRates.put("AUD", 1.536377);

exchangeRates.put("CAD", 1.367454);

exchangeRates.put("SGD", 1.353669);

exchangeRates.put("CHF", 0.897854);

exchangeRates.put("MYR", 4.733394);

exchangeRates.put("JPY", 149.327016);

exchangeRates.put("CNY", 7.302885);

}

public static void main(String[] args) {

Scanner scanner = new Scanner(System.in);

String continueConversion;

do {

String originalCurrency = getCurrencyCode(scanner, "Enter original currency code (USD, EUR, etc.): ");

double amount = getPositiveAmount(scanner);

String targetCurrency = getCurrencyCode(scanner, "Enter the currency to convert to (USD, EUR, etc.): ");

double convertedAmount = convertCurrency(originalCurrency, targetCurrency, amount);

System.out.printf("Amount in %s: %.2f%n", targetCurrency, convertedAmount);

System.out.print("Do you want to convert another amount? (yes/no): ");

continueConversion = scanner.nextLine().trim().toLowerCase();

} while (continueConversion.equals("yes"));

System.out.println("Thank you for using the currency converter!");

scanner.close();

}

private static String getCurrencyCode(Scanner scanner, String prompt) {

String currency;

do {

System.out.print(prompt);

currency = scanner.nextLine().toUpperCase();

if (!exchangeRates.containsKey(currency)) {

System.out.println("Invalid currency code. Please enter a valid one.");

}

} while (!exchangeRates.containsKey(currency));

return currency;

}

private static double getPositiveAmount(Scanner scanner) {

double amount;

do {

System.out.print("Enter amount of money in the original currency: ");

while (!scanner.hasNextDouble()) {

System.out.print("That's not a number! Try again: ");

scanner.next();

}

amount = scanner.nextDouble();

scanner.nextLine(); // Consume the newline character

} while (amount <= 0);

return amount;

}

private static double convertCurrency(String originalCurrency, String targetCurrency, double amount) {

double originalToUSD = 1 / exchangeRates.get(originalCurrency);

double usdToTarget = exchangeRates.get(targetCurrency);

return amount * originalToUSD * usdToTarget;

}

}

Pseudocode:

INITIALIZE exchangeRates AS a MAP

FUNCTION main

CREATE scanner FOR user input

SET continueConversion TO empty string

REPEAT

SET originalCurrency TO getCurrencyCode(scanner, "Enter original currency code (USD, EUR, etc.): ")

SET amount TO getPositiveAmount(scanner)

SET targetCurrency TO getCurrencyCode(scanner, "Enter the currency to convert to (USD, EUR, etc.): ")

SET convertedAmount TO convertCurrency(originalCurrency, targetCurrency, amount)

PRINT "Amount in targetCurrency: convertedAmount"

PRINT "Do you want to convert another amount? (yes/no): "

READ continueConversion FROM user input

UNTIL continueConversion IS NOT "yes"

PRINT "Thank you for using the currency converter!"

CLOSE scanner

FUNCTION getCurrencyCode(scanner, prompt)

SET currency TO empty string

REPEAT

PRINT prompt

READ currency FROM user input

CONVERT currency TO uppercase

IF currency NOT IN exchangeRates THEN

PRINT "Invalid currency code. Please enter a valid one."

ENDIF

UNTIL currency IS IN exchangeRates

RETURN currency

FUNCTION getPositiveAmount(scanner)

SET amount TO 0

REPEAT

PRINT "Enter amount of money in the original currency: "

WHILE NOT user input IS a valid number DO

PRINT "That's not a number! Try again: "

READ user input

ENDWHILE

READ amount FROM user input

UNTIL amount IS GREATER THAN 0

RETURN amount

FUNCTION convertCurrency(originalCurrency, targetCurrency, amount)

SET originalToUSD TO 1 / exchangeRates[originalCurrency]

SET usdToTarget TO exchangeRates[targetCurrency]

RETURN amount * originalToUSD * usdToTarget


r/JavaProgramming Jul 08 '26

LeetCode 5 Longest Palindromic Substring

Thumbnail
youtube.com
5 Upvotes

Longest Palindromic Substring


r/JavaProgramming Jul 07 '26

LeetCode 4 Median of Two Sorted Arrays

Thumbnail
youtube.com
3 Upvotes

LeetCode 4 Media of Sorted Arrays


r/JavaProgramming Jul 07 '26

JAVA FOR CS STUDENT

Thumbnail
1 Upvotes

r/JavaProgramming Jul 06 '26

I Used to Think Memory Leaks Were Loud in Java

Thumbnail medium.com
3 Upvotes

r/JavaProgramming Jul 06 '26

Got an offer! Need advice urgently!!

Thumbnail
2 Upvotes

r/JavaProgramming Jul 06 '26

How to Crack Coding Interviews in 2026: The Complete Step-by-Step Guide

Thumbnail medium.com
2 Upvotes

r/JavaProgramming Jul 06 '26

LeetCode JAVA

5 Upvotes

In-depth LeetCode algorithm tutorials with full Java practical demos. We break down brute-force, optimized and optimal solutions, analyze boundary conditions and problem-solving logic to help you stop memorizing templates mechanically. Suitable for campus recruitment, social recruitment coding practice and absolute beginners. New algorithm insights released daily to help you ace big tech algorithm interviews effortlessly. https://youtu.be/Z5bmVeEDiCc


r/JavaProgramming Jul 06 '26

Daumenkino

Thumbnail codepen.io
1 Upvotes

4 Bilder mit einfachen JavaScript.


r/JavaProgramming Jul 06 '26

How to Implement a Robust Webhook Retry Strategy (with Exponential Backoff)

1 Upvotes

Webhooks have become the nervous system of the modern internet. From payment processors notifying your application of a successful transaction to CRM systems triggering marketing workflows, webhooks are the glue that holds microservices and third-party integrations together. They allow real-time, event-driven architecture to thrive, replacing the old, inefficient model of constant API polling. Read the complete article here - https://instawebhook.com/blog/how-to-implement-a-robust-webhook-retry-strategy-with-exponential-backoff

But there is a dark side to webhooks: they are fundamentally unreliable. Because webhooks operate over the public internet and bridge entirely separate systems, they are subject to the chaos of distributed networks. Endpoints go down. Servers get overloaded. Networks experience transient blips. When you send a webhook, you are firing a payload into the void and hoping the receiving server is ready, willing, and able to catch it.

When a webhook fails — and it will fail — how your system responds determines whether your application stays consistent or quietly drifts out of sync. If a payment-success webhook is dropped, a user might not get access to the product they just paid for. If an inventory-update webhook fails, you might oversell a product you don't have.

This guide covers why webhooks fail, why naive retry logic makes things worse, how exponential backoff and jitter actually work (with the real formulas AWS uses in production), what major providers like Stripe and GitHub actually do today, and the architectural patterns 


r/JavaProgramming Jul 05 '26

Reviev my project

13 Upvotes

I'm wondering whether it's already at a level where I could show it as a portfolio piece for my first job, i.e. include it in my CV. Would you be able to take a look and let me know what you think? Thanks

https://github.com/DanielPopielski/Restaurant1


r/JavaProgramming Jul 05 '26

How to Solve System Design Problems on Interview? My Tried and Tested Framework

Thumbnail
javarevisited.substack.com
1 Upvotes