View Single Post
  #2 (permalink)  
Old 12-31-2007, 08:04 AM
CaptainMorgan's Avatar
CaptainMorgan CaptainMorgan is offline
Moderator
 
Join Date: Dec 2007
Location: NewEngland, US
Posts: 841
CaptainMorgan will become famous soon enoughCaptainMorgan will become famous soon enough
Send a message via AIM to CaptainMorgan
Some psuedo...
Code:
1) read the array and have method available for searching the array a) if a number matches any other number - mark it for non-printable - increase the counter 2) Output the printable number and the counter
I suspect there are quite a few classes you may be able to use for your operations if the specifications of your program are not limited to just a regular array. ArrayList comes to mind.
Reply With Quote