summaryrefslogtreecommitdiffstats
path: root/Master/Reference Architectures and Patterns/hjp5/examples/Listing1102.java
blob: e6c162c472c55d41bff827932bae86842f46622d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* Listing1102.java */

public class Listing1102
{
  public static void main(String[] args)
  {
    System.out.println(
      "Gr��e aus Hamburg".regionMatches(
        8,
        "Greetings from Australia",
        8,
        2
      )
    );
    System.out.println(
      "Gr��e aus Hamburg".regionMatches(
        6,
        "Greetings from Australia",
        15,
        3
      )
    );
  }
}