KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > test > StringUtils


1 /*
2  * This file is given under the licence found in LICENCE.TXT in the root directory of the project.
3  *
4  * #SNAPSHOT#
5  */

6 package test;
7
8 /**
9  * Just a test class
10  */

11 public class StringUtils {
12     /**
13      * Return the upperCase string given in parameter.
14      * @param str the string to uppercase
15      * @return null if the string was null, the string uppercased otherwise.
16      */

17     public static String JavaDoc upperCase(String JavaDoc str) {
18         if (str==null) {
19             return null;
20         }
21         return str.toUpperCase();
22     }
23 }
24
Popular Tags