Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void setNums(String Matrixnum){
- for (int i = 1; i <= myRows; i++){
- for(int j = 1; j <= myColumns; j++){
- String StrNum = JOptionPane.showInputDialog(null, Matrixnum + " Row " + i + " Column " + j + " enter number:");
- myNums[i][j] = Double.parseDouble(StrNum);
- }
- }
- }
- public double[][] getNums(){
- for(int i = 1; i <= myRows; i++) {
- for(int j = 1; j <= myColumns; j++) {
- return myNums[i][j];
- }
- }
- }
- private double[][] myNums;
Add Comment
Please, Sign In to add comment