Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class SearchApp {
- public static void main(String[] args) {
- ArrayList<Integer> list = new ArrayList<Integer>();
- list.add(6);
- list.add(4);
- list.add(8);
- list.add(13);
- list.add(2);
- System.out.println("List should be printed here: " + list);
- System.out.println("Does the list contain the number 7? " + s.findNumber(list, 7));
- System.out.println("Does the list contain the number 13? " + s.findNumber(list, 13));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement