Last change
on this file since 14627 was 14627, checked in by oranfry, 17 years ago |
initial import of the gs3-release-maker
|
File size:
348 bytes
|
Line | |
---|
1 | package ise.antelope.tasks.typedefs.string;
|
---|
2 |
|
---|
3 | /**
|
---|
4 | * Copyright 2003
|
---|
5 | *
|
---|
6 | * @version $Revision: 1.1 $
|
---|
7 | */
|
---|
8 | public class Length implements StringOp {
|
---|
9 |
|
---|
10 | public String execute(String s) {
|
---|
11 | if (s == null)
|
---|
12 | throw new IllegalArgumentException("string cannot be null");
|
---|
13 | return String.valueOf(s.length());
|
---|
14 |
|
---|
15 | }
|
---|
16 | }
|
---|
17 |
|
---|
18 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.