/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
	public static void main (String[] args) throws java.lang.Exception
	{
        int[] number = {1, 2, 3, 4};

        if(contains(number, 5)){
			System.out.println("Contem o numero 5");
		}else {
			System.out.println("Nao contem o numero 5");
		}
	}
	
    public static boolean contains(final int[] array, final int v) {

        boolean result = false;

        for(int i : array){
            if(i == v){
                result = true;
                break;
            }
        }

        return result;
    }
}