I have a Python code that works fine but I will need to convert it into Java:
file_path = ...
with open(file_path, "rb") as file:
in = file.read(4 * 128 * 128)
numbers = struct.unpack('f' * 128 * 128, in)
I found the implementation for other types here but I am looking for the implementation of the struct.unpack in Java for float type(C Type = f).