What am I doing wrong?
import java.io.*;// needed for BufferedReader, InputStreamReader, etc.
/** A Java program that calculates transport routes. */
class Routefinder
{
// Create a single shared BufferedReader for keyboard input
privatestatic BufferedReader stdin =
new BufferedReader(new InputStreamReader( System.in ) );
// variable declarations
{
String fromioroutes[];
String toioroutes[];
String nioroutes[];
String[] Places =new String[11];
Places[0] ="Airport";
Places[1] ="Church";
Places[2] ="Well-to-do Estate";
Places[3] ="CBD";
Places[4] ="Hospital";
Places[5] ="Grungy Neighborhood";
Places[6] ="Middle Class Suburbs";
Places[7] ="Police Station";
Places[8] ="Fire Station";
Places[9] ="Old Market";
Places[10] ="Mall";
String Airport_ioroutes=("R");
String Church_ioroutes=("R1, A4, B5");
String Church_nioroutes=("A3, A5");
String WelltodoEstate_ioroutes=("R2, A5");
String WelltodoEstate_nioroutes=("A4, B5");
String CBD_ioroutes=("A3");
String CBD_nioroutes=("A4, B5");
String Hospital_ioroutes=("B4");
String Hospital_nioroutes=("A1");
String GrungyNeighborhood_ioroutes=("A2, B1");
String MiddleClassSuburbs_ioroutes=("A1; B3");
String PoliceStation_ioroutes= ("R6");
String PoliceStation_nioroutes=("B1");
String FireStation_ioroutes=("B2, R5");
String FireStation_nioroutes=("A2");
String OldMarket_ioroutes=("R4");
String OldMarket_nioroutes=("B3");
String Mall_ioroutes=("R3");
String Mall_nioroutes=("B4");
}
publicstaticvoid main (String[] args)throws IOException{
System.out.println("Welcome to the Routefinder.");
System.out.println("Destination and Departure points include :");
System.out.println("Airport");
System.out.println("Church");
System.out.println("Well-to-do Estate");
System.out.println("CBD");
System.out.println("Hospital");
System.out.println("Grungy Neighborhood");
System.out.println("Middle-class Suburbs");
System.out.println("Police Station");
System.out.println("Fire Station");
System.out.println("Old Market");
System.out.println("Mall");
System.out.println("Please enter your Departure(From)");
String From = stdin.readLine();
if(From.equals(Places[0]))
System.out.println("Please enter your Destination(To)");
String To = stdin.readLine();
if(To.equals(Places[1]))
System.out.println("Thank you.");
}
}
There is an error 'cannot find symbol : variable Places)
on lines if(From.equals(Places[0]))
andif(To.equals(Places[1]))
Why?

