@Test
	public void testFind() {
		List<Integer> list = new ArrayList<>();
		Random random = new Random();
		for (int i=0; i<1000_000; i++) {
			list.add(random.nextInt(10_000));
		}
		
		long curTime = 0;
		curTime = System.currentTimeMillis();
		int max1 = Integer.MIN_VALUE;
		for (int i=0; i<100_000; i++) {
			int cur = list.get(i);
			if (cur > max1) {
				max1 = cur;
			}
		}
		System.out.println("max:" + max1 + " time:" + (System.currentTimeMillis() - curTime));
		
		curTime = System.currentTimeMillis();
		int max2 = Integer.MIN_VALUE;
		for (int cur : list) {
			if (cur > max2) {
				max2 = cur;
			}
		}
		System.out.println("max:" + max2 + " time:" + (System.currentTimeMillis() - curTime));
	}