can someone please help me solve this for me:

Read in a text file called repeat.txt, consisting integer numbers. Convert the text

numbers into INTEGER and store them into an ARRAY. Max number of numbers in

the file is 25, one number per line.

Input File Example:

1

2

2

3

4

4

5

5

5

A repeat in an array is a series of 2 or more adjacent elements of the same value.

Return the number of repeats in the given array.

Sample output. Several possibilities are presented

Counting Repeats

===========

[1, 2, 2, 3, 4, 4] = 2

Counting Repeats

===========

[1, 1, 2, 1, 1] = 2

Counting Repeats

===========

[1, 1, 1, 1, 1] = 1

I have set up the import code but I don't know how to put the numbers in the import file into the array

Sorry for reposting this problem again, but I found one of the things that I don't know how to do:

How do I send data to an array after I set up my buffered reader?

Read in a text file called repeat.txt, consisting integer numbers. Convert the text

numbers into INTEGER and store them into an ARRAY. Max number of numbers in

the file is 25, one number per line.

Input File Example:

1

2

2

3

4

4

5

5

5

A repeat in an array is a series of 2 or more adjacent elements of the same value.

Return the number of repeats in the given array.

Sample output. Several possibilities are presented

Counting Repeats

===========

[1, 2, 2, 3, 4, 4] = 2

Counting Repeats

===========

[1, 1, 2, 1, 1] = 2

Counting Repeats

===========

[1, 1, 1, 1, 1] = 1