geronimo-scm mailing list archives

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

URL: http://svn.apache.org/viewvc?rev=932230&view=rev
Log:
Modify the hello function not a static 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=932230&r1=932229&r2=932230&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:56:02 2010
@@ -7,7 +7,8 @@ public class HelloWorld {
      */
     public static void main(String[] args) {
         // TODO Auto-generated method stub
-        System.out.println(sayhello ());
+        HelloWorld hw = new HelloWorld();
+        System.out.println(hw.sayhello ());
     }
     
     /**
@@ -15,7 +16,7 @@ public class HelloWorld {
      * 
      * @return 
      */
-    public static String sayhello(){
+    public String sayhello(){
         return "Hello world! I am Rex.";
     }
 



Mime
View raw message