Guest User

Untitled

a guest
May 23rd, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import fundamentos.*;
  2. /**
  3.  * Write a description of class Problemaej3 here.
  4.  *
  5.  * @author (your name)
  6.  * @version (a version number or a date)
  7.  */
  8. public class Problemaej3
  9. {
  10.     public static double[][] leerMatriz(){
  11.         double [][] mat=new double[3][4];
  12.         CajaTexto caja= new CajaTexto("Matriz",10,20);
  13.         caja.espera();
  14.         for(int i=0;i<mat.length;i++){
  15.             for(int j=0;j<mat[0].length;j++){
  16.                 mat[i][j]=caja.leeDouble(j);
  17.             }
  18.             caja.avanzaLinea();
  19.         }
  20.         return mat;
  21.     }
  22. }
Add Comment
Please, Sign In to add comment