Guest User

Untitled

a guest
Feb 18th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.18 KB | None | 0 0
  1.         int x [] = { 0, 1, 2, 3, 4, 5, 5, 6, 7, 8 };
  2.        
  3.         for(int i = 0; i < x.length; i++)
  4.         {
  5.             for(int j = 0; j < x.length; j++)
  6.             {
  7.                 if(x[i] == x[j])
  8.                     return true;
  9.             }
  10.         }
Add Comment
Please, Sign In to add comment