Javascript Paired Data Array Example In Java