-
-
Notifications
You must be signed in to change notification settings - Fork 531
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
Added Insertion Sort in Java #1608
Added Insertion Sort in Java #1608
Conversation
b574702
to
5031b62
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like this might be failing some tests. Take a look.
c9940f4
to
b9f6280
Compare
archive/j/java/InsertionSort.java
Outdated
} | ||
|
||
if(numList.size()<2) { // wrong/invalid input format | ||
System.out.println("Usage: please provide a list of at least two integers to sort in the format “1, 2, 3, 4, 5”"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
System.out.println("Usage: please provide a list of at least two integers to sort in the format “1, 2, 3, 4, 5”"); | |
System.out.println("Usage: please provide a list of at least two integers to sort in the format \"1, 2, 3, 4, 5\""); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Runs great!
Congrats on taking the first step to contributing to the Sample Programs repository maintained by [The Renegade Coder][1]! For simplicity, please make sure that your pull request includes one and only one contribution.
Complete the Applicable Sections Below
Find which section best describes your pull request and make sure you fill it out. To start, let us know which issue you've fixed.
Code Snippets
Added/Updated <Sample Program> in <Language>
formatDocumentation
Added/Updated <Sample Program> in <Language> Article
formatTesting
Added/Updated <Language>/<Project> Testing
formatNotes
Added Insertion Sort in Java #1362 and updated the Java README.md