Zoo tutorials: [ SQL | Linux | XML ]
ProgZoo: [ Java | C# | VB | C++ | Perl ]
Log in

A Gentle Introduction to
Programming

Tests - Checking the end of a string

 

Tests

Tests - Checking the end of a string

1. [ Java ] Test the end of a string


Big

We use the method endsWith

The code selects those countries that end with "land".

The method startsWith is similar.