How do you make a long list in Java?
How do you make a long list in Java? You can fix this by explicitly telling Java to interpret the numbers as long , you do so by appending l or L after the number: new ArrayList(Arrays. asList(1L, 2L, 3L)); Now you receive a List which then is added to an ArrayList . How long […]