J'ai un fichier .txt avec 300 lignes et 785 colonnes avec un tas de chiffres en notation E (par exemple -6.431571950262252035e-02). Comment pourrais-je convertir ces nombres en un tableau à deux dimensions?JAVA: comment convertir un fichier txt en un tableau à deux dimensions avec des nombres en notation E?
C'est tout ce que j'ai:
double[][] hiddenArray = new double[300][785];
Scanner scanner = new Scanner(System.in) ;
String hiddenFile = "hidden-weights.txt";
String outputFile = "output-weights.txt";
scanner.close();
Scanner in = new Scanner(new File(hiddenFile));
String hidden= in.nextLine();