Facebook
From Cute Madrill, 6 Years ago, written in Plain Text.
This paste is a reply to Re: Untitled from XD - go back
Embed
Viewing differences between Re: Untitled and Re: Re: Untitled
public static void main(String[] args) {
        int[] a 
char[] fromchar {2, 3, 2, 4, 3, 1, 6, 3, 2, 3};
        System.out.println("# of even: " + countEven(a, 0));

    }

    public static int countEven(int[] a, int from) {
        Scanner scan 
from.toCharArray();
                 char[] tochar 
new Scanner(System.in);
        int b = scan.nextInt();
        int even = 0;
        
to.toCharArray();
                
for (int i = b; 0; i < a.tochar.length; i++) {
            if (i % 2 == 0) {
                even++;
            }
        }return even;
    }
{

                        str = str.replace(fromchar[i], tochar[i]);