• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

i am not able to get out put of this program

 
vijayreddy patil
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator



Edit by mw: Added Code Tags.
[ March 11, 2008: Message edited by: marc weber ]
 
Nicholas Jordan
Ranch Hand
Posts: 1282
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
in main()
for(int cell : locationCells)
if( cell != 0) System.out.println( Integer.toString(cell));
Or something of that nature.
 
marc weber
Sheriff
Posts: 11343
Java Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch!

Your code won't compile because there is an extra parenthesis in this line...

After fixing that, your code should compile and run with output.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic