i have been working on converting a python code to java which is related to my research work. i just cannot understand how to convert python type "any" to java, as we dont need to write data types in python but in java its necessary. i need your kind suggestions on that
i am trying to read data from a file and putting it into different lists, as python can automatically handle the datatypes of that data, is there any similar method to do it in java.
covMatrix = savedata[1]
covMatrix and savedata both have inferred type any at initial stage, i want to write it in java but there i have to write the data type. as i told you i want to know that is there any method in java to automatically detect the data type of data.