r/javahelp • Bamboo Bandit • Oct 06 '13

What am I doing wrong?

Post image
3 Upvotes

6 comments sorted by

View all comments

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.