Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Eserc5
- {
- public static int[] converti(int[][] mat)
- {
- int a[]= new int[mat.length*mat[0].length];
- for(int i=0; i<mat.length; i++)
- for(int j=0; j<mat[0].length; j++)
- {
- a[(mat[0].length)*(i)+j]=mat[i][j];
- }
- return a;
- }
- }
Add Comment
Please, Sign In to add comment