hey guys, so i just started learning java and had some error in my first array code. Error: Could not find or load main class Being. I use eclipse if that helps, because i read that these problems might be that ecplise cannot find the class, so just making sure it's not from the code.
Any criticism on my code is highly accepted as i want to start Java with a good basic knowledge :)
Thanks in advance.
public class Being
{
public static void main(String[] args)
{
int rowNum=12;
int colNum=24;
String g;
String [][] map = new int[rowNum][colNum];
for (int i=0;map.length; i++)
map[i][map[i].length] = g;
for (int rowNum=0; rowNum < map.length; rowNum++)
{
for (int colNum=0; colNum < map[rowNum].length; colNum++)
System.out.printf("%d ", map[rowNum][colNum]);
}
}
}