Skip to content

add: java queue .peek() method term entry #7373

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Aug 6, 2025

Conversation

Mohit5Upadhyay
Copy link
Contributor

Description

This PR adds a new term entry for the content/java/concepts/queue/terms/peek/peek.md method in Java.

  • Adds a clear explanation of .peek() usage
  • Includes multiple real-world examples
  • Demonstrates handling of empty queues safely
  • Adds a Frequently Asked Questions (FAQ)

Issue Solved

Closes #7367

Type of Change

  • Adding a new entry

Checklist

  • [✅] All writings are my own.
  • [✅] My entry follows the Codecademy Docs style guide.
  • [✅] My changes generate no new warnings.
  • [✅] I have performed a self-review of my own writing and code.
  • [✅] I have checked my entry and corrected any misspellings.
  • [✅] I have made corresponding changes to the documentation if needed.
  • [✅] I have confirmed my changes are not being pushed from my forked main branch.
  • [✅] I have confirmed that I'm pushing from a new branch named after the changes I'm making.
  • [✅] I have linked any issues that are relevant to this PR in the Issues Solved section.

@Mohit5Upadhyay
Copy link
Contributor Author

Hi @mamtawardhani 👋

I've submitted a PR for the Issue to add .peek() method term entry under Java Queue.

Please take a moment to review it when convenient.
Let me know if any adjustments or suggestions come up—I'd be happy to make improvements.

Thanks in advance for your time!

@mamtawardhani mamtawardhani self-assigned this Jul 28, 2025
@mamtawardhani mamtawardhani added java Java entries new entry New entry or entries status: under review Issue or PR is currently being reviewed labels Jul 28, 2025
Copy link
Collaborator

@mamtawardhani mamtawardhani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good for a second round of review. 🚀

@Sriparno08 Sriparno08 added status: under review Issue or PR is currently being reviewed and removed status: ready for next review labels Aug 5, 2025
@Sriparno08 Sriparno08 self-assigned this Aug 5, 2025
Copy link
Collaborator

@Sriparno08 Sriparno08 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to be merged, @Mohit5Upadhyay!

@Sriparno08 Sriparno08 merged commit 708d384 into Codecademy:main Aug 6, 2025
7 checks passed
Copy link

github-actions bot commented Aug 6, 2025

👋 @Mohit5Upadhyay
You have contributed to Codecademy Docs, and we would like to know more about you and your experience.
Please take a minute to fill out this four question survey to help us better understand Docs contributions and how we can improve the experience for you and our learners.
Thank you for your help!

🎉 Your contribution(s) can be seen here:

https://www.codecademy.com/resources/docs/java/queue/peek

Please note it may take a little while for changes to become visible.
If you're appearing as anonymous and want to be credited, visit the linked accounts page and ensure that your GitHub account is linked.

@Sriparno08 Sriparno08 added status: review 2️⃣ completed and removed status: under review Issue or PR is currently being reviewed labels Aug 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Term Entry]Java Queue: peek()
3 participants