Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/com/jwetherell/algorithms/numbers/Integers.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ public class Integers {

private static final BigDecimal ZERO = new BigDecimal(0);
private static final BigDecimal TWO = new BigDecimal(2);
// The integers are defined as constants

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Here is the first comment.


public static final String toBinaryUsingDivideAndModulus(int numberToConvert) {
int integer = numberToConvert;
Expand Down Expand Up @@ -142,6 +143,7 @@ public static final boolean powerOfTwoUsingBits(int numberToCheck) {
private static final int THOUSAND = 1000;
private static final int HUNDRED = 100;
private static final int TEN = 10;
// The integers are constants

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Here is the next comment.


private static final String handleUnderOneThousand(int number) {
StringBuilder builder = new StringBuilder();
Expand Down