Search:

Type: Posts; User: Nick0188

Search: Search took 0.17 seconds.

  1. Re: How can I rotate every n elements in an Array list by 1 index?

    You were so right. As soon as I stopped and did a little thinking. I realized that the inner loop was unnecessary if I properly incremented the first loop.
    Once I did that the rest seemed to fall...
  2. How can I rotate every n elements in an Array list by 1 index?

    Hey guys! I'm still a bit new to Java and I'm working on a problem where I'm supposed to rotate every n elements in an ArrayList.
    The method takes in as parameters: List<Integers> list and an...
Results 1 to 2 of 2