Take a look at the String API: String (Java Platform SE 7 )
Type: Posts; User: KevinWorkman
Take a look at the String API: String (Java Platform SE 7 )
Don't use == when comparing Strings. The equals method just compares whether two variables contain the same instance. Use the equals() method to compare the actual contents instead.