I have two arrays;
int[] x = {1, 2, 3, 4, 5, 1, 7, 8, 9, 10}; // x values
int[] y = {30,34,45,57,77, 89, 100, 111, 123, 145}; // y values
I want the entries in x to be on the x axis and the entries in y to be on the x axis when I put them into achartengine and obtain a graph.
As you can see in the x axis I have two entries of number 1. How do I then combine the corresponding y values so that the data point is (1, 30+89)?
And how can I do this for any number of clashes?