fr.ivision.chello
Class Hello

java.lang.Object
  |
  +--fr.ivision.chello.Hello

public class Hello
extends java.lang.Object


Constructor Summary
Hello()
           
 
Method Summary
 java.lang.String getName()
          get the current name
 java.lang.String sayHello()
          Say hello to the person 'name'
 java.lang.String sayHowAreYou()
          Say How are you to the person
 void setName(java.lang.String name)
          set the current name
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Hello

public Hello()
Method Detail

setName

public void setName(java.lang.String name)
set the current name
Parameters:
msg - a name

getName

public java.lang.String getName()
get the current name
Returns:
the name

sayHello

public java.lang.String sayHello()
Say hello to the person 'name'
Returns:
a string in the form "Hello 'name'"
See Also:
setName(java.lang.String)

sayHowAreYou

public java.lang.String sayHowAreYou()
Say How are you to the person
Returns:
a string in the form "How are you 'name' ?"
See Also:
setName(java.lang.String)