Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

1 Visitor Messages

  1. can someone 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
Showing Visitor Messages 1 to 1 of 1
About nickPinks

Basic Information

About nickPinks
Java Skill Level:
Beginner

Statistics


Total Posts
Total Posts
5
Posts Per Day
0.00
Visitor Messages
Total Messages
1
Most Recent Message
January 11th, 2018 08:54 AM
Total Thanks
Total Thanks
1
  • Thanked 0 Times in 0 Posts
General Information
Last Activity
January 18th, 2018 08:14 AM
Join Date
January 11th, 2018