Given an array of random characters, integers and symbols, WAP to print the sum of all the PRIME or EVEN integers in the array and ignore the remaining. Consider consecutive numbers as a single number

Example 1: given the below input the output will be 2+13+8+22=45

Given Input [2GSD#13x8xU343%^DGF1@22@]

Expected output 45

Example 2: given the below input the output will be 11+23+164+44=242

i think OP is newbie and doesn't familiar with daniweb homework policy. He take WAP as Write A Programme , i think.

WAP to print the sum of all the PRIME or EVEN integers in the array and ignore the remaining.

if you think that somebody here will write program for you then i think you are at wrong place ,in order to get assistance you need to prove that you made efforts to solve this question(you can prove this by showing us your code you have so far).

create an array variable and then give input to it. then check each element if they are numbers , if they are numbers then check if they are prime or even number then add the number to a variable(sum+=arr[i]).don't forget to initialize the sum variable to 0.

Please I have an autocomplete textbox which fetches value from a tabe in the database. But after i choose the name i want to get the id of the value ...

I want to draw a triangle using mouse events like mousePressed(), mouseReleased() and mouseDragged(). But triangle did not show until mouse release. Please tell me what i am ...

what i have done is copied answer in label and now matching the radiobutton option with it so far so good but i dont know how to uncheck radio button ...