KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > tests > jfun > yan > testmodel > Mtds


1 /*****************************************************************************
2  * Copyright (C) Zephyr Business Solution. All rights reserved. *
3  * ------------------------------------------------------------------------- *
4  * The software in this package is published under the terms of the BSD *
5  * style license a copy of which has been included with this distribution in *
6  * the LICENSE.txt file. *
7  *****************************************************************************/

8
9 /*
10  * Created on Apr 12, 2005
11  *
12  * Author Ben Yu
13  * ZBS
14  */

15 package tests.jfun.yan.testmodel;
16
17 /**
18  * Zephyr Business Solution
19  *
20  * @author Ben Yu
21  *
22  */

23 public class Mtds {
24   private final String JavaDoc name;
25   
26     public Mtds(final String JavaDoc name) {
27     this.name = name;
28   }
29 public static Mtds instance(String JavaDoc name){
30     return new Mtds(name);
31   }
32   public static String JavaDoc getGreeting(){
33     return "hello";
34   }
35   public String JavaDoc greet(String JavaDoc n){
36    return "hello " +n + ", I am " + name;
37   }
38 }
39
Popular Tags