How to return the value of a 2D array in java -


i have array class shown below, when run program, gives me error message: error: main method not found in class sarray, please define main method as: public static void main(string[] args) or javafx application class must extend javafx.application.application have no idea how should modify codes solve problem, cause seems there no need me have main method.

public class sarray {     public void sets(double[] s) {}      public sarray(double[] s) {         super();     }      public double[][] gets(){          double[ ][ ] s =  {{ x,x,x}, { x,x,x},{ x,x,x}};         for(int x = 0; x<s.length; x++){              for(int y = 0; y<s[x].length; y++){                 system.out.println(s[x][y]);              }          }         return s;     } } 

apparently problem not related return type of gets project setup expects sarray have application entry point.


Comments

Popular posts from this blog

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -