Guest User

Untitled

a guest
Apr 26th, 2018
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.26 KB | None | 0 0
  1. public class Eserc5
  2. {
  3.     public static int[] converti(int[][] mat)
  4.     {
  5.         int a[]= new int[mat.length*mat[0].length];
  6.         for(int i=0; i<mat.length; i++)
  7.             for(int j=0; j<mat[0].length; j++)
  8.             {
  9.                 a[(mat[0].length)*(i)+j]=mat[i][j];
  10.             }
  11.         return a;
  12.     }
  13.    
  14. }
Add Comment
Please, Sign In to add comment