r/javahelp • Bamboo Bandit • Oct 06 '13

What am I doing wrong?

Post image
3 Upvotes

6 comments sorted by

3

u/ZymosisTheAlien Bamboo Bandit Oct 06 '13

I just set up jcreator and am now testing it. Maybe I set it up wrong. Any help?

13

u/VelociraptorHighjack Oct 06 '13

You are using printIn() did you mean to use println()

5

u/ZymosisTheAlien Bamboo Bandit Oct 06 '13

That worked, thanks.

2

u/jstock23 Oct 07 '13

In this case, you can just say

int k = 2000;

You can initialize it and set it in the same line except outside of the main I think.

2

u/papichulo916 Oct 07 '13

It wouldn't hurt to write the if statement within {}

0

u/[deleted] Oct 06 '13

[deleted]

2

u/ZymosisTheAlien Bamboo Bandit Oct 07 '13

I understand that now, sorry.