public String USER_NAME;
public void USER_NAME_AGREEMENT(String LOGIN) {
if (LOGIN == null) throw new IllegalArgumentException();
USER_NAME = LOGIN;
System.out.println("Agreement: " + USER_NAME);
}
int number = 5;
List<Integer> repeatedIndex = new ArrayList<>();
int[] numbers = {1,2,4,5,2,5,7,5,2,8,1};
for(int i = 0; i < numbers.length(); i++)
{
if(numbers[i].equals(number);
{
repeatedIndex.add(i);
}
}