geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rwo...@apache.org
Subject svn commit: r932232 - /geronimo/sandbox/rex/samples/HelloWorld/src/org/apache/geronimo/rex/HelloWorld.java
Date Fri, 09 Apr 2010 02:57:24 GMT
Author: rwonly
Date: Fri Apr  9 02:57:23 2010
New Revision: 932232

URL: http://svn.apache.org/viewvc?rev=932232&view=rev
Log:
Add a parameter to sayhello method

Modified:
    geronimo/sandbox/rex/samples/HelloWorld/src/org/apache/geronimo/rex/HelloWorld.java

Modified: geronimo/sandbox/rex/samples/HelloWorld/src/org/apache/geronimo/rex/HelloWorld.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/rex/samples/HelloWorld/src/org/apache/geronimo/rex/HelloWorld.java?rev=932232&r1=932231&r2=932232&view=diff
==============================================================================
--- geronimo/sandbox/rex/samples/HelloWorld/src/org/apache/geronimo/rex/HelloWorld.java (original)
+++ geronimo/sandbox/rex/samples/HelloWorld/src/org/apache/geronimo/rex/HelloWorld.java Fri
Apr  9 02:57:23 2010
@@ -8,7 +8,7 @@ public class HelloWorld {
     public static void main(String[] args) {
         // TODO Auto-generated method stub
         HelloWorld hw = new HelloWorld();
-        System.out.println(hw.sayhello ());
+        System.out.println(hw.sayhello ("Rex"));
     }
     
     /**
@@ -16,7 +16,7 @@ public class HelloWorld {
      * 
      * @return 
      */
-    public String sayhello(){
+    public String sayhello(String name){
         return "Hello world! I am Rex.";
     }
 



Mime
View raw message