This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes i am not able to get out put of this program Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "i am not able to get out put of this program" Watch "i am not able to get out put of this program" New topic
Author

i am not able to get out put of this program

vijayreddy patil
Greenhorn

Joined: Feb 12, 2008
Posts: 5



Edit by mw: Added Code Tags.
[ March 11, 2008: Message edited by: marc weber ]
Nicholas Jordan
Ranch Hand

Joined: Sep 17, 2006
Posts: 1282
in main()
for(int cell : locationCells)
if( cell != 0) System.out.println( Integer.toString(cell));
Or something of that nature.
marc weber
Sheriff

Joined: Aug 31, 2004
Posts: 11343

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.


"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: i am not able to get out put of this program