Demo1.java

This is a snippet of the java code for the demonstration class, demo1.java. The full code is in the directory: <Tymeac base>\Source.

package com.tymeac.serveruser;

public class Demo1 {

public static Object main(Object args[])
        throws java.lang.Throwable {

try {

    // Should be a string passed
    if (!args[0] instanceof String) {
           
        // no good, return null
        return null;
    } // endif

    // passed string
    String Begin = (String) args[0];

    // do the processing here
        ...

    // form return value
    String S = "#Demo1: "  +  "Other values developed in processing";

    return (Object)S;

} // end-try

catch (java.lang.Throwable e) {

    e.printStackTrace(System.out);

    throw e;
} // end-catch

        } // end-method
} // end-class

 

 

© 1998 - 2004 Cooperative Software Systems, Inc.  All rights reserved.