All pastes #2095859 Raw Edit

Anonymous

public text v1 · immutable
#2095859 ·published 2011-11-25 14:39 UTC
rendered paste body
    public static void main(String[] args)
    { 
        Scanner javaisfun = new Scanner(System.in);
        System.out.println("Please enter the size you wish the array to be: ");
        int size = javaisfun.nextInt();

        
        System.out.println("Please enter the integers you wish to be in this array: ");
        read(size);
        
        int evenSize = 0;
        for (int i = 0; i < size; i++)
        {    
            int OddorEven = originalarray[i] % 2;
            if (OddorEven == 0)
            {
                evenSize = evenSize + 1;
            }
        }     
    }
    public static int[] read(size)
    {
        Scanner javaisfun = new Scanner(System.in);
        int integers[] = new int[size];       
        for (int i = 0; i < size; i++)
        {
            integers[i] = javaisfun.nextInt();
        }
        return integers;
    }