Wednesday, November 2, 2016

Greetings from a JAR

A typical simple application looks like this from a first year student taking Java for the first time.  the code works, but it is not college level, detail oriented, and user friendly application.  the beauty of modern programming languages is the same as the beauty of modern technology, it is easily adoptable and user friendly.  Java is an easy language to pick up and learn because of its documentation, so don't ignore what makes Java strong.

Modern applications are also user friendly and engaging, so make sure you create your own brand by being consistent in your coding and be nice to your users.  Give users a basic information about yourself and about the application, but most importantly welcome the users like thy are your guests.  there are many great applications that are out there, but you have to be unique in your application approach and don't let a user just leave after running your program.  Thank them for using your program and either tell them about your other applications, give them incentives to come back, or at least send them to your website.

public class SampleApp {
public static void main(String[] args) {
System.out.println("The number 10 raised to the power of 3 is: " + java.lang.Math.pow(10,3));    
System.out.println("Hello World");
}
}

Videos to use Greetings.jar in BlueJ and Eclipse

Greetings JAR BlueJ
https://youtu.be/F0-ClRhUZA4

Greetings JAR Eclipse
https://youtu.be/qK88J11N0VE


Greetings.jar file Download

So, that simple application can be embellished to make it fit to be called Java code and the branding can be done easily with custom classes.  Thus, in this project you'll learn how to use someone else's jar packaged classes in BlueJ and in Eclipse.  The classes are simple enough, so you can learn how to handle import statements, read documentations, and the concept of static methods.

All these simple suggestions will make you a better programmer and a consistent professional!

import rlc.zoltan.COSC.Welcome;
/**
 * Description
 * @author  Name
 * @version 1.0.0
 */
public class SampleApp {
    /**
     * Description
     * @param args string array from the command line
     * @return void
     * @throws Nothing is implemented
     */
    public static void main(java.lang.String[] args)     {
     //Let your users know that you appreciate them for choosing to use our application
     Welcome wmsg=new Welcome("Welcome to my course. I hope you'll enjoy it.");
     rlc.zoltan.COSC.MyCourse.InfoI();
     java.lang.System.out.println(wmsg);
 
    java.lang.System.out.println("The number 10 raised to the power of 3 is: " + java.lang.Math.pow(10,3));        java.lang.System.out.println("Hello World");
 
    //Keep your users engaged as they leave
    rlc.zoltan.COSC.Appreciate thanks=new rlc.zoltan.COSC.Appreciate();
    java.lang.System.out.println(thanks);
    }
}

Let me know if you need a copy of the Greetings.jar file that this example code was based on.  

No comments:

Post a Comment