Skip to content

Commit

Permalink
Create Crab.java
Browse files Browse the repository at this point in the history
  • Loading branch information
nmcl committed Jan 7, 2024
1 parent 7c5b415 commit 84817f2
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions AdventOfCode/2021/day7/Crab.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
public class Crab
{
public Crab (int h_pos)
{
_h_pos = h_pos;
}

public final int horizontalPosition ()
{
return _h_pos;
}

private int _h_pos;
}

0 comments on commit 84817f2

Please sign in to comment.