Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Add this tag to your question to indicate that you are new to the language of your code. This will often be taken into consideration by reviewers when assessing your code.
0
votes
And the little one said "Roll over"
The only thing I can think to add to others' is that the comments in the main method are superfluous.
// Declare a reference variable of type song99bottles - new object
song99bottles go = new song9 …
9
votes
Basic Java library to hold books
java.util.Optional<T>
A short suggestion because no one has suggested it yet. Instead of returning null or throwing an exception when the book you are searching for isn't found, you should use Option …
3
votes
Accepted
Generating a topographic string
The reason I made getLevelContent a separate method is to avoid multiple for loops for each level of the output (3, 2, and 1). Is separating into methods, as I have done here, a good way to solv …
6
votes
Binary Calculator in Java
Pimgd provided a good point about your Operations class, but if you wanted to keep it I would suggest making these changes to it as it's a "utility class"
Make it a final class
Add a private constru …