-
Notifications
You must be signed in to change notification settings - Fork 21k
update chiphers #419
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
update chiphers #419
Conversation
christianbender
left a comment
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.
Good Work! I have some requests.
| private static Object[] findElements() { | ||
| Object[] charValues = new Object[keyword.length()]; | ||
| for (int i = 0; i < charValues.length; i++) { | ||
| for (int j = 0; j < abecedarium.length(); j++) { |
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.
This loop can be avoid with help of the method .indexOf(c) see
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.
👍
| table[i][secondColumnIndex]=table[i][firstColumnIndex]; | ||
| table[i][firstColumnIndex]=columnToSwitch[i]; | ||
|
|
||
| private static void switchColumns(Object[][] table, int firstColumnIndex, int secondColumnIndex, Object[] columnToSwitch) { |
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.
Please break this line up. max. 80 columns
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.
👍 done
changes :-