Non duplicates numbers in user input

前端 未结 5 464
野性不改
野性不改 2021-01-24 02:59

I am trying to work out how to create an input validation where it won\'t let you enter the same number twice as well as being inside a range of numbers and that nothing can be

5条回答
  •  再見小時候
    2021-01-24 03:26

    For testing a value is present in the numbers array use Arrays.asList(numbers).contains(temp)

    May better if you use an ArrayList for storing numbers.

提交回复
热议问题