static boolean obsahuje( int[] p, int h ) { for( int i = 0; i < p.length; i++ ) { if( p[i] == h ) { return true; } } return false; }