ArrayList<Integer> hLProductList = getPointsValue(
Utility.convertToTextList(mProductListingPage.getProductPoints()));
logReport("hLProductList : ===== " + hLProductList);
List is displaying as hLProductList : ===== [2490, 990, 6870, 1870, 3740, 1240, 7370, 4370, 2870, 3740, 7370, 990, 2240, 3740, 7120, 3110, 1870, 2120, 3120, 8740, 930, 1870, 4370, 1240, 5620, 2620, 6240, 4620, 4990, 1870, 4120, 1240, 7120, 2120, 1870, 6990, 1620, 3110, 1610, 3240, 3870, 3120, 1870, 370, 2490, 3740, 1490, 3120]
So überprüfen Sie diese Werteliste zwischen 1 und 10000 Bereich.?Überprüfen von Integer-Listenwerten zwischen einem bestimmten Bereich
Warum nicht einfach 'hlProductList.stream() allmatch (x -> x> = 1 && x <= 10000)'? –
Ich verwende nicht java8 –
@ OleV.V. Danke für den Hinweis, korrigiert! –