public void atemptArrest(Thief t) { if (t.isCriminal()) { announcements[anounC] = "Stop right there criminal scum! Nobody breaks the law on my watch! "; anounC++; announcements[anounC] = "I'm confiscating your stolen goods. And then it is off to jail!"; anounC++; string s = ""; while (t.hasStuff()) { Sak stolenGoods = t.loose1Item(); int confCounter = 0; while (inventory[confCounter] != Sak.Inget) { confCounter++; } s = s + (" " + stolenGoods); inventory[confCounter] = stolenGoods; if (s.Length > 100) { announcements[anounC] = s; anounC++; s = ""; } }//end while loop for the whole list of stolen property! announcements[anounC] = s + "<things confiscated>"; anounC++; t.youDoneGoofed(); announcements[anounC] = (t.getName() + " was sent to jail "); anounC++; thiefCaught = true; } // end BECAUSE IM A CRIMINAL! }