Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static int[][] readMatrixPre(int[][] matrix){
- int i=0, j=0;
- File nameFile = new File("matrizes.txt");
- Scanner toReadFile = new Scanner("matrizes.txt");
- while(toReadFile.hasNextLine()){
- i++;
- while(toReadFile.hasNextInt()){
- j++;
- matrix[i][j] = toReadFile.nextInt();
- }toReadFile.nextLine();
- }
- toReadFile.close();
- return matrix;
- }
- public static void writeMatrixIn(){}
- public static void showMeMyDespair(int[][] matrix){
- int i=0, j=0;
- for(i = 0; i < matrix.length-1; i++ ){
- for(j = i+1; j < matrix.length; j++){
- out.print(matrix[i][j]);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement