Skip to content

Conversation

@piyushkumar0707
Copy link
Contributor

Adds a beginner-friendly Java program page showing three ways to swap two numbers:
Using a temporary variable (clear and safe)
Using arithmetic operations (note potential overflow)
Using bitwise XOR (no temp, for integers)
Includes code, explanations, and sample outputs.
Wired into navigation:
meta.json updated
contents.mdx updated
Related: open-for-all “Java Basic Programs” (#201)

@vercel
Copy link

vercel bot commented Oct 18, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
javaistic Ready Ready Preview Comment Oct 18, 2025 5:42pm

💡 Enable Vercel Agent with $100 free credit for automated AI reviews

@piyushkumar0707 piyushkumar0707 changed the title feat(programs): add swap two numbers examples (temp, arithmetic, xor) feat(programs): add swap two numbers examples (temp, arithmetic, xor) [GSSoC 2025] Oct 18, 2025
@arghyaxcodes arghyaxcodes changed the title feat(programs): add swap two numbers examples (temp, arithmetic, xor) [GSSoC 2025] Add swap two numbers examples (temp, arithmetic, xor) [GSSoC 2025] Oct 18, 2025
@github-project-automation github-project-automation bot moved this to Todo in Contents Oct 18, 2025
@arghyaxcodes arghyaxcodes moved this from Todo to In Progress in Contents Oct 18, 2025
@arghyaxcodes arghyaxcodes linked an issue Oct 18, 2025 that may be closed by this pull request
13 tasks
@arghyaxcodes arghyaxcodes merged commit 713b6a0 into javaistic:main Oct 18, 2025
4 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in Contents Oct 18, 2025
@arghyaxcodes
Copy link
Member

Thanks, @piyushkumar0707 for this contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Java Basic Programs

2 participants