Skip to content
Advertisement

Trouble getting and printing a returned value from one class to another in Java

I’m trying to import data from a CSV file. I don’t have any issue about the importing process. But, when I’m passing an imported array from the CSV file to another method in another class, I can not get and print the values from the array. I got the following printing: [1, 2.0, [[Ljava.lang.String;@1e81f4dc]. “1” and “2” are imported values and are o.k.

The real trouble for me is to get and print the values in “[Ljava.lang.String;@1e81f4dc]”.

I’d appreciate if you can help to know how to get the values in [Ljava.lang.String;@1e81f4dc] and print them. The array in [Ljava.lang.String;@1e81f4dc] is a 2d array with double values.

The code I’m working on is the next one:

JavaScript

Advertisement

Answer

JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement