Conversation
JJ27
suggested changes
Jun 21, 2021
Contributor
JJ27
left a comment
There was a problem hiding this comment.
Left some comments. Thanks for the PR! I hope to see more problems in the future :)
Also, try your best to pass the style checks (if they're just getting you on annoying stuff just let me know and I can override them).
| for(int j = 0; j < arr[0].length; j++) | ||
| { | ||
| //Check if current element is set to true | ||
| if(arr[i][j] == true) |
Contributor
There was a problem hiding this comment.
You can actually change this line to
Suggested change
| if(arr[i][j] == true) | |
| if(arr[i][j]) | |
Comment on lines
+4
to
+7
| Create a program called BinaryReader in which a 4 x 4 | ||
| array of booleans is created. Have the computer loop | ||
| through the array, printing a 0 if the current element is | ||
| set to false and a 1 if it set to true. |
Contributor
There was a problem hiding this comment.
Instead of having them create an array themselves, you might want to consider having this be a method instead (the 4x4 array is the parameter and the method either prints or returns the string)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
New practice problem for Java Intermediate Lesson 10.2