Java error: method recordShot in class PaintballPlayer cannot be applied to given types;
<p>When I compile my code I get this error: </p>

<p>"PaintballPlayerTest.java:19: error: method recordShot in class PaintballPlayer cannot be applied to given types;
sheldon.recordShot(0);
       ^
  required: no arguments
  found: int
  reason: actual and formal argument lists differ in length"</p>

<p>It has been quite frustrating and I was hoping if someone here might be able to help me out. The code is as follows....</p>

<p>Mine:</p>

<pre><code>import java.util.*;

public class PaintballPlayer
{
private String firstName, middleName, lastName;
private String secFirst, secLast;
private int id;
private int count;
private static int totalPlayers;
private int playerID;
private int players;
private int shots;
private static int shotsFired;


public PaintballPlayer(String first, String middle, String last)
{
    count = 0;
    id = totalPlayers++;
    players = count++;
    shots = count++;
    firstName = first;
    middleName = middle;
    lastName = last;

}

public PaintballPlayer(String f, String l)
{
    this (f,"",l);
    id = count++;

}


   public PaintballPlayer() 
{
totalPlayers++;
    }


   public static int getTotalPlayers() 
{
return totalPlayers;
}

public int recordShot()
{
    return count;
}

public String toString()
{
    String name;
    String n;
    name = firstName + " " + middleName + " " + lastName;

    return name;

}


public int getPlayerID()
{
    playerID = count;
    return playerID;
}

}
</code></pre>

<p>Test Code:</p>

<pre><code>public class PaintballPlayerTest
{

public static void main (String [] args)
{
//Part 1 check constructor &amp; toString --(make sure ID is working too)
PaintballPlayer sheldon = new PaintballPlayer ("Sheldon", "Lee", "Cooper");
PaintballPlayer leonard = new PaintballPlayer ("Leonard", "Hofstadter");
PaintballPlayer amy = new PaintballPlayer ("Amy", "Farrah", "Fowler");

System.out.println(sheldon);
System.out.println(leonard);

//Part 2 test getTotalPlayer --should be 3
System.out.println("The team has this many players " + PaintballPlayer.getTotalPlayers());

//Part 3 test recordShot
sheldon.recordShot(0);
sheldon.recordShot(1);
leonard.recordShot(0);
leonard.recordShot(0);
sheldon.recordShot(0);
sheldon.recordShot(1);
leonard.recordShot(2);
}
</code></pre>

<p>My problem lies in the area labeled part 3. I appreciate any help that I get.</p>
