If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

<identifier> expected error...cant fix ;(

im creating a random player match generator and im experimenting with java for its implementation I am getting this "<identifier> expected" error" and I really cannot figure out how to make it go away!

here is the code. The implemenation of main() is not completed yet so just ignore it for now.

I tried to compile it, but I'm using 1.4 so I had to remove the generics. I receive a different error, "non-static variable this cannot be referenced from a static context". It points at "playr" in the main method. I have no idea why, the main method should be able to instantiate the inner class. And I see no place where its using "this". This one has me stumped.

Ah, nevermind. It just hit me. (been a long night) Since Player is an inner class, it doesn't technically exist until wnrandom is instantiated.