Package proj

Source Code of proj.BusinessClass

package proj;

import java.util.List;
import java.util.ArrayList;

import simplejar.JARClass;


public class BusinessClass {

    private double doub2;


    /** Creates a new instance of class */
    public BusinessClass() {
    }


    public static boolean execLogin(String username, String password) {

        // hard-coded
        return ( username.equals("user") && password.equals("password") );

    }

    public static List execSearch(String crit) {

        // hard-coded
        List list = new ArrayList();

        list.add("result 1");
        list.add("result 2");

        return list;
    }

    public static void testJar() {

        // check log file for JAR class output
        JARClass jarclass = new JARClass();
        jarclass.useJARClass();

    }

    public double getDoub2() {
        return doub2;
    }

    public void setDoub2(double d) {
        doub2 = d;
    }

}
TOP

Related Classes of proj.BusinessClass

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.