Hi all, I'm a student currently learning Java and I have an assignment I am extremely stuck with. We haven't done much programming before so I'm finding it tough but I have to provide the code for a Gun. Here is what I have so far:
{ int currentChamber; boolean [] chamberArray; public Gun() { chamberArray[0] = false; chamberArray[1] = false; chamberArray[2] = false; chamberArray[3] = false; chamberArray[4] = false; }; void RotateCylinder() { } void InsertBullet() { } }
I'm struggling to get ANYTHING working for the two methods. Can anyone please help?