but i am able to run the program with this
class abc
{
public static void main(String ar[])
{
int a[]=new int[10];
Type: Posts; User: brishi2806
but i am able to run the program with this
class abc
{
public static void main(String ar[])
{
int a[]=new int[10];
but this is the syntax for java.
--- Update ---
pls tell me the complete program.
Error is:-Main method not found in class abc.
My program is to enter the value of array during runtime.
//
class abc
{
public static void main(String ar[][])
{
int a[][]=new int[2][3];
int b[][]=new int[2][3];
int i,j,k,l;