code sample icon Sample Code

In the source editor, after the line:

 public HelloWorldSessionBean() { 

Add the following method:

 public String sayHello (String name) { 
     return "Hello " + name; 

Instead of typing the sample code, you can copy the code in this window and then paste it into the source editor.

Copyright © 1997, 2009, Oracle. All rights reserved.

false ,,,,,,,,,,,,,,,