Example #1
0
 public static void main(String[] args) {
   Hello objHello = new Hello();
   String s = objHello.greet();
   System.out.println(s);
   Hello objHello2 = new Hello("Kay");
   s = objHello2.greet();
   System.out.println(s);
 }
Example #2
0
 public void onGreet(ActionEvent event) {
   message.setText(hello.greet(yourName.getText()));
 }