+ 1
How to determine Average if some EditText are not fill?
I want to develope an application which calculate some entries. But if there is one or more empty EditText so it does not crash. And calculate the length of fill entry only.
6 Antworten
+ 1
what about counting?
+ 1
I want to create an app which calculates average. There should 10 EditText available. but if I put only 6 entries, so it calculate only those which are fill like "Sum of entries divide by6"
+ 1
Use a int variable for track how many EditText value are not empty and for any not empty EditText add calculate the sum.
At end divide this sum by the track int variable
+ 1
can you plz code it?
0
You cannot ignore they or make they value as 0?
0
Bashir Ahmad Can you explain better your problem?