KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > demo > hello > GoodDayImpl


1 package demo.hello;
2
3 import org.omg.CORBA.*;
4
5 public class GoodDayImpl
6     extends GoodDayPOA
7 {
8     private String JavaDoc location;
9
10     public GoodDayImpl( String JavaDoc location )
11     {
12         this.location = location;
13     }
14
15     public String JavaDoc hello_simple()
16     {
17         return "Hello World, from " + location;
18     }
19
20     public String JavaDoc hello_wide(String JavaDoc wide_msg)
21     {
22         System.out.println("The message is: " + wide_msg );
23         return "Hello Wörld, from ö 1 2 3 0 *&^%$#@!@";
24     }
25
26 }
27
Popular Tags