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
Tag: return-type
Dynamic return type based on input argument type
I’m trying to write a small function that takes two lists and sorts one based on the elements of the other. So something like: would result in a sorted list [E, C, A, D, B]. However, valuesToSort might be a list of something different, like integers, floats or other lists. Ideally, I would want my program to take any list
Return type method “Return value of the method is never used” problem
i have a task to complete. I have to create a return type method takes String array as an argument and returns to int. So my method works completely fine i will use it to count multiple elements of an element in an array but on method name it says “Return value of the method is never used”. I just