Final year project due - brain too frazzled to fix small problem

Hello,

I am in my game class, and have filled up various arraylists with values.

ArrayLists A, B, C, D, Z, X

How can I make the following not give loads of errors like

cannot find symbol symbol : variable player1

location: class irsds3.Game3

if( player1.checkForDominance()!=0 )

if ((p1Strategy3.size()>2) && (p2Strategy3.size()>2))

{

Player3 player1 = new Player3(new Strategy3[] {A, B, Z });

Player3 player2 = new Player3(new Strategy3[] {C, D, X });

}

else

{

Player3 player1 = new Player3(new Strategy3[] {A, B });

Player3 player2 = new Player3(new Strategy3[] {C, D });

}

I have it compiling when I intialize like so ie no if statements

Player3 player1 = new Player3(new Strategy3[] {A, B });

Player3 player2 = new Player3(new Strategy3[] {C, D });

I need the program to work in some way similiar to the above if statements!

Please help,

I'm off to bed though as it is 4 in the morning here over here

[1060 byte] By [bronze-starDukes] at [2007-11-26 12:14:06]
# 1
> How can I make the following not give loads of errors> like > cannot find symbol symbol : variable player1Define "player1" in the appropriate scope.
bronzestar at 2007-7-7 14:16:16 > top of Java-index,Archived Forums,Socket Programming...