Thank you for wanting to contribute! Here's how you can help us build the best Java learning resource.
- Check existing issues/PRs to avoid duplicates
- For DSA problems, link to LeetCode challenges
- Follow Java naming conventions and best practices
- Add comments explaining complex concepts
For Java Basics/OOP:
---
title: "Understanding Inheritance"
topic: "OOP"
difficulty: "Medium"
time: "15 mins"
prerequisites: ["Classes & Objects", "Encapsulation"]
---
## Concept Explanation
[Your explanation here with examples]
## Code Example
[Example Java code]
## Key Takeaways
- Point 1
- Point 2
## Practice Problems
- [LeetCode Link]For DSA:
---
title: "Two Sum"
problem_id: "1"
difficulty: "Easy"
leetcode: "https://leetcode.com/problems/two-sum/"
tags: ["Array", "HashMap"]
---
## Problem Statement
[Description]
## Solution
[Code with explanation]
## Time Complexity
O(n), O(n) spacePlace in appropriate examples/ folder:
- Use meaningful class/file names
- Add Javadoc comments
- Include a main() method demonstrating usage
Example structure:
/**
* Demonstrates the concept of [Topic]
* Author: Your Name
* Date: 2026-06-13
*/
public class ExampleName {
public static void main(String[] args) {
// Example code here
}
}If adding from the DSA repository (https://github.com/BEASTSHRIRAM/DSA-Java):
- Reference the original problem
- Add LeetCode link
- Explain the approach
- Add multiple solutions if available
- Note time/space complexity
- Fork the repository
- Branch from main:
git checkout -b feature/topic-name
- Commit with clear message:
git commit -m "Add: Inheritance lesson with examples" - Push to your fork:
git push origin feature/topic-name
- Create PR with description of changes
## Description
What are you adding/fixing?
## Type of Change
- [ ] New lesson
- [ ] Code example
- [ ] Bug fix
- [ ] Documentation update
## Topics Covered
- Topic 1
- Topic 2
## Related Issues
Fixes #(issue number)- Maintainers will review within 3-5 days
- Feedback may be requested
- Once approved, your PR will be merged
- Your contribution appears on GitHub Pages automatically
- Follow Google Java Style Guide
- Use meaningful variable names
- Add comments for complex logic
- Test your code before submitting
- Use clear, simple English
- Use "you" and "we" for engagement
- Add code examples
- Explain the "why" not just the "what"
- Classes:
PascalCase(e.g.,LinkedListExample.java) - Files:
kebab-case(e.g.,array-basics.md) - Folders:
kebab-case(e.g.,data-structures)
Found a bug or have an idea?
- Check existing issues first
- Click Issues → New Issue
- Use clear title and description
- Add labels (bug, enhancement, documentation)
- Include code snippets if relevant
- Code compiles and runs without errors
- Follows Java naming conventions
- Includes comments/documentation
- LeetCode links tested and valid
- PR template completed
- No duplicate content
- README or docs updated if needed
- Be respectful and inclusive
- Help others learn
- No spam or promotional content
- Ask questions if you're stuck
- Share knowledge generously
- Open an Issue with
questionlabel - Start a Discussion thread
- Reach out on GitHub
Thank you for contributing!