Ad
  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    No you're right, because you have to add yourPoints to the average, so the number of Points increases to length + 1

  • Custom User Avatar

    Because in the second For loop you compare all characters with the current character at index i, so also the character with itself. And of course, when you compare something to itself, it's the same.

  • Custom User Avatar

    Because the operator '*' cannot be used for Object. Neither can Integer::sum be used for Object. You should have made the list an integer list, so List<Integer>. Lists include, as long as you don't specify it, Objects.