Skip to content

Make ListPrinter.java more safe and readable #9

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Naksh-Rathore
Copy link

Changes in ListPrinter.java:

  • Spaced out everything a bit more
  • Added newline to the function instead of the main code
  • Made the types accurate to ensure safety

@Naksh-Rathore Naksh-Rathore changed the title Make ListPriinter.java code more safe and readable Make ListPrinter.java code more safe and readable May 4, 2025
@Naksh-Rathore Naksh-Rathore changed the title Make ListPrinter.java code more safe and readable Make ListPrinter.java more safe and readable May 4, 2025
Added static to the printList function to enable the usage of way 1 (not needing an instance) but still keep the the original way
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant