Jin N.

asked • 01/21/21

Help me with this please

Write a static void method that will take accept an int array as a parameter and will count the number of times the numbers, 0-9, appear in the array, which can just be print statements

Patrick B.

tutor
There is confusion on what is expected... the array contains integers which can be 2,3,4 digits long... you are asking to count how many times each digit appears, a frequency table For each integer in the array: converts the integer to string for each character in the string increment the frequency for that digit ----------------------------------------------------------------------------- This will of course work on even single digit integers, so no harm, no foul.... The source code is uploaded to the RESOURCES section under this link.
Report

01/21/21

2 Answers By Expert Tutors

By:

Rob S. answered • 01/21/21

Tutor
5 (1)

B.A. in Computer Science from Amherst College

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.