I have a problem with arrays in java. I have a array:
double[][] tab2 = {{318, 0.0825},
{321, 0.1131},
{309, 0.0283},
{319, 0.0830}};
and I need to change that array to:
double[][] tab2 = {{318, 0.0830},
{321, 0.0283},
{309, 0.1131},
{319, 0.0825}};
This is what i mean. I have four numbers. In this example 318, 321, 309 and 319. Every number is connected with another number, like 318 - 0.0825, 321 - 0.1131, etc. I need change value second values. When number which is connected with the biggest number should be connected with the smaller eg. 321 - 0.1131 should be 321 - 0.0283, 318 - 0.00830 should be 318 - 0.0825. It is possible to do this things?