Error: Main method not found in class Arrays.C, please define the main method as: public static void main(String[] args) or a JavaFX application class must extend javafx.application.Application
Although am having a main method, am getting this kind of error.
the code is as follows.....
package Arrays;
public class C {
public static void main(String[] args) {
// TODO Auto-generated method stub
int a[][]={{1,3,4},{3,4,5}};
int b[][]={{1,3,4},{3,4,5}};
int c[][]=new int[2][3];
for(int i=0;i<2;i++)
{
for(int j=0;j<3;j++)
{
c[i][j]=a[i][j]+b[i][j];
System.out.print(c[i][j]+" ");
}
System.out.println();
}
}
}