Get data from Object []?

0

In the debugger I saw that the object receives ['product', 210]

Object obj = prodRepositorio.somaById();

I would like to get the data in it but not cast casten or anything.

I've tried

String produto = (String)obj[0];
Long valor = (Long)obj[1];

I have already changed to Object [] but it's value is in obj [0]

    
asked by anonymous 28.03.2017 / 04:16

0 answers