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

A Gentle Introduction to
Programming

Tests - Checking the start or the end of a string

 

Tests

Tests - Checking the start or the end of a string

1. [ Java ] Test a string


Big

We use the method startsWith

The code selects those countries that begin with "D".

The method endsWith is similar.