Skip to content
Open
Changes from 1 commit
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
3 changes: 2 additions & 1 deletion src/main/java/core/basesyntax/FlipBit.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ public class FlipBit {
* Договоримся, что биты нумеруются от младшего (индекс 1) к старшему (индекс 32).</p>
*/
public int flipBit(int value, int bitIndex) {
return 0;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

remove empty line

return value ^ (1 << bitIndex - 1);
}
}