How do I check if an array element exists?

dmbrent

New Member
I'm looking for Java's equivalent of PHP's isset();\[code\]int board[][]=new int[8][8];...if(isset(board[y][x])) // Do something with board[y][x]\[/code\]Does such a function exist in Java?Edit: Sorry, what I meant is that I want to check if \[code\]board[100][100]\[/code\] exists or not. \[code\]if(board[100][100])\[/code\] would result in an array out of bounds error.
 
Back
Top