Guest User

Untitled

a guest
Nov 22nd, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. public void setNums(String Matrixnum){
  2. for (int i = 1; i <= myRows; i++){
  3. for(int j = 1; j <= myColumns; j++){
  4. String StrNum = JOptionPane.showInputDialog(null, Matrixnum + " Row " + i + " Column " + j + " enter number:");
  5. myNums[i][j] = Double.parseDouble(StrNum);
  6. }
  7. }
  8. }
  9.  
  10. public double[][] getNums(){
  11. for(int i = 1; i <= myRows; i++) {
  12. for(int j = 1; j <= myColumns; j++) {
  13. return myNums[i][j];
  14. }
  15. }
  16. }
  17.  
  18. private double[][] myNums;
Add Comment
Please, Sign In to add comment