I tell you that I have a ArrayList as follows:
Dim matriz As New ArrayList
matriz.Add(5)
matriz.Add(2)
matriz.Add(4)
matriz.Sort
Now what I need is to know what the difference between elements is; that is
Elemento1 = 5
Elemento2 = 2
Elemento3 = 4
I want to know if there is any form or property of Array
that will help me achieve this:
Pseudocode
Diferencia1 = ValorAbsoluto(Elemento1 - Elemento2)
Diferencia2 = ValorAbsoluto(Elemento1 - Elemento3)
Diferencia3 = ValorAbsoluto(Elemento2 - Elemento3)