Edit BoxesI am developing an application which consists of Edit Texts, I will explain clearly based on steps:
a) Based on Spinner some item will contain 3 edit text boxes, and some will contain 4 edit-text boxes.
b) for this i will to calculate GCD, Currently i am using using GCD calculation for two Edit boxes, how can i calculate for ** Three Edit Boxes and Four Edit Boxes**
private long gcd(long a, long b) {
if (b == 0)
return a;
else
return gcd(b, a % b);
}
How i can write code for Three and four Edit Boxes.