Incompatible types required boolean found string
I am trying to set a value for a variable called Location when ever the value for the location is "AFRICA"
I need to reset it to be "55555".
What I am getting is that 'Incompatible types required boolean found string' under the if statemant. Can anyone shade some light on this?
String Location = filename.substring(12,17);
String AP = "AFRICA";
System.out.println(Location);
if (Location = AP)
{
System.out.println(Location);
Location = "55555";
}
thanks