I have 2 `EditText`s that get a `String` and when the `Button` is clicked it converts `char` of this `String` to `int`. It then sums all `int` of `chars` and when sum of `int` is odd `(totals&1 == 0)` a `Dialog` shows "that is odd". And after `else,` the second `Dialog` shows "that is even". I need to set `AlertDialog` to show that.

```
final EditText ed1 = (EditText) findViewById(R.id.edtFather);
        final EditText ed2 = (EditText) findViewById(R.id.edtMother);
        //final TextView tv = (TextView) findViewById(R.id.txtfather);
        Button btn = (Button) findViewById(R.id.button1);

        btn.setOnClickListener(new View.OnClickListener() {

            @Override
            public void onClick(View arg0) {

                String dataF = ed1.getText().toString();
                char[] charArray = dataF.toCharArray();
                int totalF = 0;
                for (char ch: charArray) {
                    totalF += characterMap.get(ch);
                }

                String dataM = ed2.getText().toString();
                char[] charArr = dataM.toCharArray();
                int totalM = 0;
                for (char ch2: charArr) {
                    totalM += characterMap.get(ch2);
                }

                int sum = totalF + totalM;
                int totals = sum % 5;
                if ((totals & 1) == 0)

                    //alert dialog 1 show "that is odd"

                else {

                    //alert dialog 2 show "that is even"

                }

            }
        });

```