I've had a maaaassive long day practicing the ol' Java. I've been fine up until now (which is unusual for me XD).
I've ran into this problem while trying to compile this part of my code; 'void' type not allowed here.
Here's the code:
public void beginGame()
{
System.out.println("===================================================================\n\n"
+ "Welcome Mr Connz.\nIt is Day #" + politician.getCurrentDay() + "\nSo far this week:\n" + politician.getRumour());
System.out.println("Your shredder is currently " + politician.getShredderVolume() + "% full");
System.out.println(shredderCheck());
}
public void shredderCheck()
{
if (politician.hasDocument())
{
System.out.println("The original document is still in your possession.");
}
else
{
System.out.println("Your political instinct tells you that you might be in trouble...");
}
}
I figure you probably don't need the rest of the code [plus there's lots of it] but if you do, I'll happily provide.
It's probably something really simple that I just can't see..
Anyway, off to sleep..
Thanks!
err.. i forgot to put where i was getting my error. that's how tired i am. it's "System.out.println(shredderCheck());" that's causing the trouble.
This post has been edited by mogstronaut_: 28 April 2008 - 02:11 AM

New Topic/Question
Reply




MultiQuote




|