fork(4) download
  1. import java.util.*;
  2. import java.lang.*;
  3. import java.io.*;
  4.  
  5. class Ideone
  6. {
  7. public static void main (String[] args) throws java.lang.Exception
  8. {
  9. Integer[] arr = {1, 2, 3};
  10. System.out.println(Arrays.asList(arr).contains(1));
  11. }
  12. }
Success #stdin #stdout 0.1s 320512KB
stdin
Standard input is empty
stdout
true